Update app.py
Browse files
app.py
CHANGED
|
@@ -1,15 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
<iframe src='https://en.wikipedia.org/wiki/Chocolate' width='100%' height='600' allow='fullscreen'></iframe>
|
| 6 |
-
"""
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
gr.HTML(embed_html())
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
|
|
|
| 14 |
|
| 15 |
app.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
# Embed an external webcam test in an iframe
|
| 4 |
+
iframe_url = "https://www.veed.io/tools/webcam-test"
|
|
|
|
|
|
|
| 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("Webcam Test"):
|
| 11 |
+
gr.HTML(embed_webcam_test())
|
| 12 |
|
| 13 |
app.launch()
|