llamameta commited on
Commit
388dac5
·
verified ·
1 Parent(s): ca7cb1f

Create test.py

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