akhaliq HF staff commited on
Commit
3537429
·
verified ·
1 Parent(s): 338a932

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -1,7 +1,11 @@
1
  import gradio as gr
2
  import transformers_gradio
3
 
4
- gr.load(
5
  name='HuggingFaceTB/SmolVLM-Instruct',
6
  src=transformers_gradio.registry,
7
- ).launch()
 
 
 
 
 
1
  import gradio as gr
2
  import transformers_gradio
3
 
4
+ demo = gr.load(
5
  name='HuggingFaceTB/SmolVLM-Instruct',
6
  src=transformers_gradio.registry,
7
+ )
8
+
9
+ demo.fn = spaces.GPU()(demo.fn)
10
+
11
+ demo.launch()