llamameta commited on
Commit
7789ae0
·
verified ·
1 Parent(s): 5805aee

Create deepseek-ai.py

Browse files
Files changed (1) hide show
  1. deepseek-ai.py +14 -0
deepseek-ai.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import spaces
3
+ import transformers_gradio
4
+
5
+ demo = gr.load(name="deepseek-ai/DeepSeek-R1-Distill-Qwen-32B", src=transformers_gradio.registry)
6
+ demo = gr.load(name="deepseek-ai/DeepSeek-R1", src=transformers_gradio.registry)
7
+
8
+ demo.fn = spaces.GPU()(demo.fn)
9
+
10
+ for fn in demo.fns.values():
11
+ fn.api_name = False
12
+
13
+ if __name__ == "__main__":
14
+ demo.launch()