File size: 767 Bytes
d88f582
 
f89f959
 
0166505
d88f582
f89f959
5531fa2
f89f959
 
 
 
 
 
 
 
d88f582
dcae5bf
 
f26d5e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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='camera; microphone; fullscreen; speaker'></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"))

    with gr.Tab("IELTS Chatroom"):
        gr.HTML(embed_webcam_test("https://c528d9a8.s3.ap-southeast-2.amazonaws.com/index.html"))
app.launch()