Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
update to use load
Browse files- app_sailor.py +1 -3
- app_showui.py +0 -4
app_sailor.py
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
-
import transformers_gradio
|
4 |
|
5 |
-
demo = gr.load(name="sail/Sailor2-20B-Chat", src=
|
6 |
-
demo.fn = spaces.GPU()(demo.fn)
|
7 |
|
8 |
for fn in demo.fns.values():
|
9 |
fn.api_name = False
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
|
|
3 |
|
4 |
+
demo = gr.load(name="sail/Sailor2-20B-Chat", src="spaces")
|
|
|
5 |
|
6 |
for fn in demo.fns.values():
|
7 |
fn.api_name = False
|
app_showui.py
CHANGED
@@ -1,12 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
-
import spaces
|
3 |
|
4 |
# Load the Gradio space
|
5 |
demo = gr.load(name="showlab/ShowUI", src="spaces")
|
6 |
|
7 |
-
# Ensure the main function runs on a GPU
|
8 |
-
if hasattr(demo, 'fn'):
|
9 |
-
demo.fn = spaces.GPU()(demo.fn)
|
10 |
|
11 |
# Disable API access for all functions
|
12 |
if hasattr(demo, 'fns'):
|
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
# Load the Gradio space
|
4 |
demo = gr.load(name="showlab/ShowUI", src="spaces")
|
5 |
|
|
|
|
|
|
|
6 |
|
7 |
# Disable API access for all functions
|
8 |
if hasattr(demo, 'fns'):
|