akhaliq HF staff commited on
Commit
59cb807
1 Parent(s): 3218cbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,7 +1,9 @@
1
  import gradio as gr
 
2
  import transformers_gradio
3
 
4
  demo = gr.load(name="allenai/OLMo-2-1124-13B-Instruct", src=transformers_gradio.registry)
 
5
 
6
  if __name__ == "__main__":
7
  demo.launch()
 
1
  import gradio as gr
2
+ import spaces
3
  import transformers_gradio
4
 
5
  demo = gr.load(name="allenai/OLMo-2-1124-13B-Instruct", src=transformers_gradio.registry)
6
+ demo.fn = spaces.GPU()(demo.fn)
7
 
8
  if __name__ == "__main__":
9
  demo.launch()