Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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()
|