| 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() | |