akhaliq HF staff commited on
Commit
3f9cf44
1 Parent(s): 9f99390
Files changed (1) hide show
  1. app_marco_o1.py +4 -11
app_marco_o1.py CHANGED
@@ -1,16 +1,9 @@
1
- import os
2
-
3
  import transformers_gradio
4
 
5
- from utils import get_app
6
-
7
- demo = get_app(
8
- models=[
9
- 'AIDC-AI/Marco-o1'
10
- ],
11
- default_model="AIDC-AI/Marco-o1",
12
- src=transformers_gradio.registry,
13
- )
14
 
15
  if __name__ == "__main__":
16
  demo.launch()
 
1
+ import gradio as gr
2
+ import spaces
3
  import transformers_gradio
4
 
5
+ demo = gr.load(name="AIDC-AI/Marco-o1", src=transformers_gradio.registry)
6
+ demo.fn = spaces.GPU()(demo.fn)
 
 
 
 
 
 
 
7
 
8
  if __name__ == "__main__":
9
  demo.launch()