testspace / app.py
alpha1ct's picture
Update app.py
dcae5bf verified
raw
history blame contribute delete
767 Bytes
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()