alpha1ct commited on
Commit
f89f959
·
verified ·
1 Parent(s): b7340e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -1,13 +1,18 @@
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()
 
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()