Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
# Define the components
|
| 4 |
with gr.Blocks() as chatbot:
|
| 5 |
gr.HTML("<iframe src='https://prithivmlmods-mistral-7b-instruct-v0-3.hf.space/' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 6 |
|
| 7 |
with gr.Blocks() as imagegpt:
|
| 8 |
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/ImageGPT-4XL' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 9 |
|
| 10 |
-
with gr.Blocks() as imageengine4k:
|
| 11 |
-
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/DALLE-4K' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 12 |
-
|
| 13 |
with gr.Blocks() as imageengine2k:
|
| 14 |
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/DALLE-2K' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
with gr.Blocks() as mediadownloader:
|
| 17 |
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/All-In-One-Downloader' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
|
@@ -20,13 +20,13 @@ with gr.Blocks() as photofakes:
|
|
| 20 |
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/Face-Swap-Roop' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 21 |
|
| 22 |
# Assemble the components into a single Gradio interface
|
| 23 |
-
with gr.Blocks(theme=
|
| 24 |
-
gr.Markdown("
|
| 25 |
gr.TabbedInterface(
|
| 26 |
-
[chatbot, imagegpt,
|
| 27 |
-
['Chat
|
| 28 |
)
|
| 29 |
|
| 30 |
# Launch the demo with GPU enabled
|
| 31 |
-
demo.queue(max_size=300
|
| 32 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
# Define the components
|
| 4 |
with gr.Blocks() as chatbot:
|
| 5 |
gr.HTML("<iframe src='https://prithivmlmods-mistral-7b-instruct-v0-3.hf.space/' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 6 |
|
| 7 |
with gr.Blocks() as imagegpt:
|
| 8 |
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/ImageGPT-4XL' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
with gr.Blocks() as imageengine2k:
|
| 11 |
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/DALLE-2K' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 12 |
+
|
| 13 |
+
with gr.Blocks() as imageengine4k:
|
| 14 |
+
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/DALLE-4K' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 15 |
|
| 16 |
with gr.Blocks() as mediadownloader:
|
| 17 |
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/All-In-One-Downloader' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
|
|
|
| 20 |
gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/Face-Swap-Roop' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
|
| 21 |
|
| 22 |
# Assemble the components into a single Gradio interface
|
| 23 |
+
with gr.Blocks(theme="xiaobaiyuan/theme_brief", title="") as demo:
|
| 24 |
+
gr.Markdown("")
|
| 25 |
gr.TabbedInterface(
|
| 26 |
+
[chatbot, imagegpt, imageengine2k, imageengine4k, mediadownloader, photofakes],
|
| 27 |
+
['Chat·Fast', 'Image·GPT', 'Dall·E Base', 'Dall·E Advanced', 'Media·Downloader', 'Deep·Fakes']
|
| 28 |
)
|
| 29 |
|
| 30 |
# Launch the demo with GPU enabled
|
| 31 |
+
demo.queue(max_size=300).launch(enable_queue=True, debug=True)
|
| 32 |
|