prithivMLmods commited on
Commit
d0fa98d
·
verified ·
1 Parent(s): 51e0fab

Update app.py

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