Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,33 @@
|
|
| 1 |
-
import
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
|
| 3 |
+
# Define the components using the specified URLs
|
| 4 |
+
|
| 5 |
+
with gr.Blocks() as chatbot1:
|
| 6 |
+
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/Mistral-Maturity-LLM' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
with gr.Blocks() as chatbot:
|
| 10 |
+
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/Mistral-7B-Instruct-v0.3' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
with gr.Blocks() as imagegpt:
|
| 14 |
+
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/ImageGPT-4XL' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 15 |
+
|
| 16 |
+
with gr.Blocks() as imageengine4k:
|
| 17 |
+
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/DALLE-4K' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 18 |
+
|
| 19 |
+
with gr.Blocks() as mediadownloader:
|
| 20 |
+
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/All-In-One-Downloader' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
# Assemble the components into a single Gradio interface
|
| 25 |
+
with gr.Blocks(theme=gr.themes.Soft(), title="Gemini 4o") as demo:
|
| 26 |
+
gr.Markdown("# Gemini 4o")
|
| 27 |
+
gr.TabbedInterface(
|
| 28 |
+
[chatbot1, chatbot, imagegpt, imageengine4k, mediadownloader],
|
| 29 |
+
['7B-Instruct-v0.1', '7B-Instruct-v0.3', 'ImageGPT', 'Image Engine 4K', 'Media Downloader']
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
# Launch the demo with GPU enabled
|
| 33 |
+
demo.queue().launch(debug=True)
|