File size: 605 Bytes
b7340e7
bec56cb
b7340e7
 
 
bec56cb
b7340e7
 
 
 
bec56cb
b7340e7
 
bec56cb
b7340e7
 
c4b472c
b7340e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gradio as gr

# Embed the webcam tests with their respective URLs
def embed_webcam_test(iframe_url):
    return f"<iframe src='{iframe_url}' width='100%' height='600' allow='fullscreen'></iframe>"

# Create the Gradio app with multiple tabs for each test
with gr.Blocks() as app:
    with gr.Tab("WebcamTests.com"):
        gr.HTML(embed_webcam_test("https://webcamtests.com"))

    with gr.Tab("Clideo"):
        gr.HTML(embed_webcam_test("https://clideo.com/tools/webcam-test"))

    with gr.Tab("Direec"):
        gr.HTML(embed_webcam_test("https://direec.com/tools/webcam-test"))

app.launch()