Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import transformers_gradio
|
3 |
|
@@ -6,5 +7,7 @@ demo = gr.load(
|
|
6 |
src=transformers_gradio.registry,
|
7 |
)
|
8 |
|
|
|
|
|
9 |
demo.launch()
|
10 |
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import transformers_gradio
|
4 |
|
|
|
7 |
src=transformers_gradio.registry,
|
8 |
)
|
9 |
|
10 |
+
demo.fn = spaces.GPU()(demo.fn)
|
11 |
+
|
12 |
demo.launch()
|
13 |
|