prithivMLmods commited on
Commit
a7e1622
·
verified ·
1 Parent(s): 9fa0a6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -2
app.py CHANGED
@@ -1,3 +1,33 @@
1
- import os
2
 
3
- exec(os.environ.get('GEMINI4o'))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)