App-Router / app.py
prithivMLmods's picture
Update app.py
839d533 verified
Raw History Blame
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)