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