Spaces:
Running
Running
Update index.html
Browse files- index.html +13 -9
index.html
CHANGED
@@ -3,14 +3,16 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>
|
7 |
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
|
8 |
<link href="styles.css" rel="stylesheet">
|
|
|
|
|
9 |
</head>
|
10 |
<body>
|
11 |
<div class="container">
|
12 |
<div class="voice-assistant-card">
|
13 |
-
<h1 class="title">
|
14 |
<div id="responseTime">Latency: 0ms</div>
|
15 |
<div class="indicator-wrapper">
|
16 |
<div id="userIndicator" class="indicator">
|
@@ -29,13 +31,7 @@
|
|
29 |
<span>AI: Idle</span>
|
30 |
</div>
|
31 |
</div>
|
32 |
-
<button id="startStopButton">
|
33 |
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
34 |
-
<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path>
|
35 |
-
<path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>
|
36 |
-
<line x1="12" y1="19" x2="12" y2="23"></line>
|
37 |
-
<line x1="8" y1="23" x2="16" y2="23"></line>
|
38 |
-
</svg> Start Listening </button>
|
39 |
<div class="settings">
|
40 |
<div class="setting">
|
41 |
<label for="voiceSelect">Voice:</label>
|
@@ -60,8 +56,16 @@
|
|
60 |
</div>
|
61 |
</div>
|
62 |
<div id="transcript"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
</div>
|
64 |
</div>
|
|
|
65 |
<script>
|
66 |
function loadScript() {
|
67 |
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor) && !/Edg/.test(navigator.userAgent);
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Video Assistant</title>
|
7 |
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
|
8 |
<link href="styles.css" rel="stylesheet">
|
9 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css">
|
10 |
+
<script src="https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js"></script>
|
11 |
</head>
|
12 |
<body>
|
13 |
<div class="container">
|
14 |
<div class="voice-assistant-card">
|
15 |
+
<h1 class="title">Video Assistant</h1>
|
16 |
<div id="responseTime">Latency: 0ms</div>
|
17 |
<div class="indicator-wrapper">
|
18 |
<div id="userIndicator" class="indicator">
|
|
|
31 |
<span>AI: Idle</span>
|
32 |
</div>
|
33 |
</div>
|
34 |
+
<button id="startStopButton">Start Listening</button> <!-- Simplified button -->
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
<div class="settings">
|
36 |
<div class="setting">
|
37 |
<label for="voiceSelect">Voice:</label>
|
|
|
56 |
</div>
|
57 |
</div>
|
58 |
<div id="transcript"></div>
|
59 |
+
|
60 |
+
|
61 |
+
<!-- Webcam Integration -->
|
62 |
+
<div class="webcam-container mt-4">
|
63 |
+
<h2 class="text-lg font-semibold mb-2">Webcam Feed</h2>
|
64 |
+
<video id="webcam" autoplay playsinline width="640" height="480"></video>
|
65 |
+
</div>
|
66 |
</div>
|
67 |
</div>
|
68 |
+
|
69 |
<script>
|
70 |
function loadScript() {
|
71 |
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor) && !/Edg/.test(navigator.userAgent);
|