Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
zero-gpu
Browse files- app_marco_o1.py +4 -11
app_marco_o1.py
CHANGED
@@ -1,16 +1,9 @@
|
|
1 |
-
import
|
2 |
-
|
3 |
import transformers_gradio
|
4 |
|
5 |
-
|
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()
|