Update index.html
Browse files- index.html +13 -46
index.html
CHANGED
|
@@ -1,51 +1,18 @@
|
|
| 1 |
-
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8" />
|
| 5 |
-
<title>Daily Call Example</title>
|
| 6 |
-
<link href="style.css" rel="stylesheet" />
|
| 7 |
-
</head>
|
| 8 |
-
<body>
|
| 9 |
-
<div>
|
| 10 |
-
<label for="room-url">Room URL:</label>
|
| 11 |
-
<input
|
| 12 |
-
type="text"
|
| 13 |
-
id="room-url"
|
| 14 |
-
size="50"
|
| 15 |
-
placeholder="https://yourcompany.daily.co/hello"
|
| 16 |
-
/>
|
| 17 |
-
</div>
|
| 18 |
-
<div>
|
| 19 |
-
<input type="text" id="join-token" size="50" placeholder="Optional" />
|
| 20 |
-
</div>
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
<button id="toggle-camera" disabled="true">Toggle Camera</button>
|
| 26 |
-
<button id="toggle-mic" disabled="true">Toggle Microphone</button>
|
| 27 |
-
</div>
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
<select id="mic-selector">
|
| 34 |
-
<option value="" disabled selected>Select a microphone</option>
|
| 35 |
-
</select>
|
| 36 |
-
</div>
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
<div id="mic-state">Mic: Off</div>
|
| 41 |
-
<div id="participant-count">Participants: 0</div>
|
| 42 |
-
<div id="active-speaker">Active Speaker: None</div>
|
| 43 |
-
</div>
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
<script src="https://unpkg.com/@daily-co/daily-js"></script>
|
| 48 |
-
<script src="index.js"></script>
|
| 49 |
-
</body>
|
| 50 |
-
</html>
|
| 51 |
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
# Embed the webcam tests with their respective URLs
|
| 4 |
+
def embed_webcam_test(iframe_url):
|
| 5 |
+
return f"<iframe src='{iframe_url}' width='100%' height='600' allow='fullscreen'></iframe>"
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
+
# Create the Gradio app with multiple tabs for each test
|
| 8 |
+
with gr.Blocks() as app:
|
| 9 |
+
with gr.Tab("WebcamTests.com"):
|
| 10 |
+
gr.HTML(embed_webcam_test("https://webcamtests.com"))
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
+
with gr.Tab("Clideo"):
|
| 13 |
+
gr.HTML(embed_webcam_test("https://clideo.com/tools/webcam-test"))
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
with gr.Tab("Direec"):
|
| 16 |
+
gr.HTML(embed_webcam_test("https://direec.com/tools/webcam-test"))
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
app.launch()
|