Spaces:
Paused
Paused
Download app.py from Nymbo/App-Router: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/spaces/Nymbo/App-Router/resolve/main/app.py
- Command line
-
hf download hf://spaces/Nymbo/App-Router/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Nymbo/App-Router/resolve/main/app.py
1.27 kB
| import os | |
| import gradio as gr | |
| # Define the components using the specified URLs | |
| with gr.Blocks() as Nymbot: | |
| gr.HTML("<iframe src='https://nymbo-nymbot.hf.space' width='100%' height='600px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as imagegpt: | |
| gr.HTML("<iframe src='https://prithivmlmods-imagegpt-4xl.hf.space' width='100%' height='750px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as ss: | |
| gr.HTML("<iframe src='https://prithivmlmods-smart-search.hf.space' width='100%' height='850px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as me: | |
| gr.HTML("<iframe src='https://prithivmlmods-save-web-as-zip.hf.space' width='100%' height='800px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as mediadownloader: | |
| gr.HTML("<iframe src='https://prithivmlmods-all-in-one-downloader.hf.space' width='100%' height='900px' style='border-radius: 8px;'></iframe>") | |
| # Set theme and title | |
| with gr.Blocks(theme="Nymbo/Alyx_Theme", title="App Router") as demo: | |
| gr.HTML("<center><h1>App Router</h1></center>") | |
| gr.TabbedInterface( | |
| [Nymbot, imagegpt, ss, me, mediadownloader], | |
| ['Nymbot', 'Image.GPT', 'Smart.Search', 'Web.2.Zip', 'Media.Downloader'] | |
| ) | |
| demo.queue().launch(debug=True) | |