-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
60 lines (53 loc) · 1.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./images/gemini.png" type="image/png">
<meta name="description" content="A demo of Google's latest multimodal AI, gemini-1.5-flash">
<link rel="manifest" href="./manifest.json">
<meta name="keywords"
content="google, gemini, image-analysis, gemini-flash, google-ai, gpt, chatgpt, ai, llm, gemini-demo, chiroyce">
<link rel="stylesheet" href="./style.css">
<script type="importmap">
{
"imports": {
"@google/generative-ai": "https://esm.run/@google/generative-ai"
}
}
</script>
<title>Gemini Vision</title>
</head>
<body>
<div class="stuff">
<h1><span><img src="./images/gemini.png" alt=""></span>Gemini Vision</h1>
<div class="flex">
<div class="right" id="settings">
<input type="password" id="api" placeholder="Enter API key (get it from ai.google.dev)">
<textarea id="prompt" placeholder="Enter prompt here" rows="4" cols="40"></textarea><br>
<select id="promptSelect"></select><br>
<select id="voiceSelect">
<option value="default">Default voice</option>
</select><br>
<button id="speak">Speak</button>
</div>
<div class="left">
<video id="webcam" autoplay></video>
<select id="cameraSelect"></select>
<button id="click">Take picture 📸</button>
<div class="speech-checkbox">
<div>
<input type="checkbox" id="hide">
<span>Hide settings</span>
</div>
</div>
</div>
</div>
<br>
<canvas id="canvas" width="640" height="480" style="display: none;"></canvas>
<a href="/live">Live mode</a>
<p id="response"></p>
</div>
</body>
<script src="./script.js" type="module"></script>
</html>