-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (61 loc) · 2.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Text Generation with Generative AI</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-0evSX huddled7su3YrYtEC9zvDyrpg/92vNBOB+D9PPN2vtEtq8PWve7E2Q2E2YeGA0"
crossorigin="anonymous"
/>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/showdown/2.1.0/showdown.min.js"
integrity="sha512-LhccdVNGe2QMEfI3x4DVV3ckMRe36TfydKss6mJpdHjNFiV07dFpS2xzeZedptKZrwxfICJpez09iNioiSZ3hA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/default.min.css"
/>
<link rel="stylesheet" href="./index.css" />
<link rel="stylesheet" href="./media.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/highlight.min.js"></script>
</head>
<body>
<div class="container mt-3" id="container">
<div class="row justify-content-center">
<div class="col-md-8">
<h1>Chatbot və ya səyahət planlama</h1>
<p>
Aşağıda getmək istədiyiniz yeri və qalacağınız gün sayısını təyin edərək səyahət planı yarada bilərsiniz və ya prompt girərək Gemini AI vasitəsilə chatbot'dan istifadə edə bilərsiniz
</p>
<div id="res"></div>
</div>
<div class="input-group mb-3">
<input
id="prompt-here"
type="text"
class="form-control"
placeholder="Enter your prompt to AI"
/>
<input type="text" id="fromPlace" placeholder="Hardan" />
<input type="text" id="toPlace" placeholder="Hara" />
<input type="number" id="duration" placeholder="Neçə günlük" />
<button id="button" class="btn btn-primary">Get Response</button>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.min.js" integrity="sha512-ykZ1QQr0Jy/4ZkvKuqWn4iF3lqPZyij9iRv6sGqLRdTPkY69YX6+7wvVGmsdBbiIfN/8OdsI7HABjvEok6ZopQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="importmap">
{
"imports": {
"@google/generative-ai": "https://esm.run/@google/generative-ai"
}
}
</script>
<script type="module" defer src="./index.js"></script>
</body>
</html>