wifix199's picture
Update app.py
d0338ea verified
raw
history blame
1.8 kB
import gradio as gr
# Define Gradio theme
theme = gr.themes.Soft(
primary_hue="indigo",
secondary_hue="emerald",
neutral_hue="gray",
font="Rubik" # Make sure "Rubik" is a valid font
)
# Create Gradio blocks with custom CSS for enhanced UI
with gr.Blocks(theme=theme, title="RocketGPT - AI-Powered Chatbot") as demo:
# Define individual tabs
with gr.Blocks() as chat:
gr.Markdown("### ๐Ÿ’ฌ SuperChat")
gr.HTML("<iframe src='https://Qwen-QwQ-32B-preview.hf.space' width='100%' height='800px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as voice:
gr.Markdown("### ๐ŸŽ™๏ธ Speech Generator")
gr.HTML("<iframe src='https://wifix199-Text-to-speech-LuminaIQ.hf.space' width='100%' height='800px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as image:
gr.Markdown("### ๐Ÿ–ผ๏ธ Image Generator")
gr.HTML("<iframe src='https://wifix199-Text-to-image-LuminaIQ.hf.space' width='100%' height='800px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as video:
gr.Markdown("### ๐Ÿ“น Video Engine")
gr.HTML("<iframe src='https://kingnish-instant-video.hf.space' width='100%' height='800px' style='border-radius: 8px;'></iframe>")
with gr.Blocks() as tryon:
gr.Markdown("### ๐Ÿ–ผ๏ธ Finegrain")
gr.HTML("<iframe src='https://finegrain-finegrain-object-cutter.hf.space' width='100%' height='800px' style='border-radius: 8px;'></iframe>")
# Create a tabbed interface
gr.TabbedInterface(
interface_list=[chat, voice, image, video, tryon],
tab_names=["๐Ÿ’ฌ SuperChat", "๐Ÿ—ฃ๏ธ Speech Generator", "๐Ÿ–ผ๏ธ Image Generator", "๐ŸŽฅ Video Generator", "๐Ÿ–ผ๏ธ Finegrain"]
)
# Launch the app
demo.queue(max_size=300)
demo.launch()