App-Router / app.py
prithivMLmods's picture
Update app.py
226a27b verified
Raw History Blame
1.53 kB
import gradio as gr
# Define the components
with gr.Blocks() as chatbase:
gr.HTML("<iframe src='https://prithivmlmods-mistral-maturity-llm.hf.space/' width='100%' height='600px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as chatbot:
gr.HTML("<iframe src='https://prithivmlmods-mistral-7b-instruct-v0-3.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='700px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as smartsearch:
gr.HTML("<iframe src='https://prithivmlmods-smart-search.hf.space/' width='100%' height='750px' 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='750px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as photofakes:
gr.HTML("<iframe src='https://prithivmlmods-face-swap-roop.hf.space/' width='100%' height='750px' style='border-radius: 8px;'></iframe>")
# Assemble the components into a single Gradio interface
with gr.Blocks(theme="xiaobaiyuan/theme_brief", title="GPT 4o") as demo:
gr.Markdown("# Omni~GPT")
gr.TabbedInterface(
[chatbase, chatbot, imagegpt, smartsearch, mediadownloader, photofakes],
['Chat·Base', 'Chat·Fast', 'Image·GPT', 'Smart·Search', 'Media·Downloader', 'Deep·Fakes']
)
demo.queue().launch(show_api=False)