akhaliq HF staff commited on
Commit
a67cd5c
1 Parent(s): 1aacbef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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