rodrigomasini commited on
Commit
d5a3d59
·
verified ·
1 Parent(s): 6cc78c1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -3
main.py CHANGED
@@ -1,8 +1,12 @@
1
  import gradio as gr
2
  import helper
 
3
 
4
- gr.load(
5
  name="AIDC-AI/Marco-o1",
6
- model_path='AIDC-AI/Marco-o1',
7
  src=helper.registry,
8
- ).launch()
 
 
 
 
 
1
  import gradio as gr
2
  import helper
3
+ import spaces
4
 
5
+ app=gr.load(
6
  name="AIDC-AI/Marco-o1",
 
7
  src=helper.registry,
8
+ )
9
+ app.fn = spaces.GPU()(app.fn)
10
+
11
+ if __name__ == "__main__":
12
+ app.launch()