forked from gregsadetsky/sagittarius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (39 loc) · 2.03 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sagittarius</title>
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>✨</text></svg>">
<link rel="stylesheet" type="text/css" href="src/style.css">
<script data-goatcounter="https://sagittarius.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
</head>
<body>
<div id="container">
<div class="switch-container">
<span class="label label-left"><img src="assets/OpenAI-GPT-4.png" id="gptLogo" /></span>
<div class="toggle-switch"><div class="toggle-slider" data-position="left"></div></div>
<span class="label label-right"><img src="assets/Google-Gemini-AI-Logo.png" id="geminiLogo" /></span>
</div>
<div class="api-key-container">
API Key: <input type="password" id='apiKey' value=''>
</div>
<video autoplay playsinline webkit-playsinline muted hidden></video>
<canvas id="canvas" width="640" height="480"></canvas>
<div id="instruction"><button id="startButton">Start</button>Start speaking and ask the AI what it recognizes, including hand gestures.<br/>
Dictation & speech language: <select id='languageSelect'></select>
</div>
<div id="promptOutput"></div>
<div id="debugImages" style="display:none;"></div>
<div id="footer">
Best experienced using <img src="assets/Google_Chrome_icon.png" id="chromeLogo" /> Google Chrome on desktop<br />
Repo: <a href="https://github.com/gregsadetsky/sagittarius" target="blank">github.com/gregsadetsky/sagittarius</a><br />
OpenAI Model: <a href="https://platform.openai.com/docs/guides/vision" target="_blank">gpt-4-vision-preview</a><br />
Google Gemini Model: <a href="https://ai.google.dev/models/gemini" target="_blank">gemini-pro-vision</a><br />
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>