Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,18 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
# Embed
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
def embed_webcam_test():
|
| 7 |
return f"<iframe src='{iframe_url}' width='100%' height='600' allow='fullscreen'></iframe>"
|
| 8 |
|
|
|
|
| 9 |
with gr.Blocks() as app:
|
| 10 |
-
with gr.Tab("
|
| 11 |
-
gr.HTML(embed_webcam_test())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
app.launch()
|
|
|
|
| 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()
|