alpha1ct commited on
Commit
5531fa2
·
verified ·
1 Parent(s): 26ddb6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -1,15 +1,13 @@
1
  import gradio as gr
2
 
3
- def embed_html():
4
- return """
5
- <iframe src='https://en.wikipedia.org/wiki/Chocolate' width='100%' height='600' allow='fullscreen'></iframe>
6
- """
7
 
8
- with gr.Blocks() as app:
9
- with gr.Tab("Wikipedia Tab"):
10
- gr.HTML(embed_html())
11
 
12
- with gr.Tab("Second Tab"):
13
- gr.Textbox(value="Content for the second tab", label="Second Tab Content")
 
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()