Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
)
|
|
|
|
|
|
|
|
|
|
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()
|