Spaces:
Paused
Paused
Download app.py from Nymbo/App-Router: direct link, hf CLI and curl.
- Browser
- Download file 1.66 kB
-
https://huggingface.co/spaces/Nymbo/App-Router/resolve/51e0fab2ca054f11da7dc52efeb39dff0d55e2bc/app.py
- Command line
-
hf download hf://spaces/Nymbo/App-Router@51e0fab2ca054f11da7dc52efeb39dff0d55e2bc/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Nymbo/App-Router/resolve/51e0fab2ca054f11da7dc52efeb39dff0d55e2bc/app.py
1.66 kB
| import gradio as gr | |
| # Define the components using the specified URLs | |
| with gr.Blocks() as chatbot: | |
| gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/Mistral-7B-Instruct-v0.3' width='100%' height='1000px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as imagegpt: | |
| gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/ImageGPT-4XL' width='100%' height='1000px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as imageengine4k: | |
| gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/DALLE-4K' width='100%' height='1000px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as imageengine2k: | |
| gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/DALLE-2K' width='100%' height='1000px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as mediadownloader: | |
| gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/All-In-One-Downloader' width='100%' height='1000px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as photofakes: | |
| gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/Face-Swap-Roop' width='100%' height='1000px' style='border-radius: 8px;'></iframe>") | |
| # Assemble the components into a single Gradio interface | |
| with gr.Blocks(theme=gr.themes.Soft(), title="ChatGPT-Omni") as demo: | |
| gr.Markdown("# ChatGPT-Omni") | |
| gr.TabbedInterface( | |
| [chatbot, imagegpt, imageengine4k, imageengine2k, mediadownloader, photofakes], | |
| ['ChatBot', 'ImageGPT', 'Image Engine 4K', 'Image Engine 2K', 'Media Downloader', 'PhotoFakes'] | |
| ) | |
| # Launch the demo with GPU enabled | |
| demo.queue().launch(debug=True) |