llamameta commited on
Commit
902ac4f
1 Parent(s): 1678008

Create qwq.py

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