MrYu commited on
Commit
6c62f4f
·
verified ·
1 Parent(s): 268e15e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -2
app.py CHANGED
@@ -1,3 +1,26 @@
1
- import gradio as gr
2
 
3
- gr.load("models/Qwen/QwQ-32B-Preview").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
 
3
+ import dashscope_gradio
4
+
5
+ from utils import get_app
6
+
7
+ demo = get_app(
8
+ models=[
9
+ "qwen-turbo-latest",
10
+ "qwen-turbo",
11
+ "qwen-plus",
12
+ "qwen-max",
13
+ "qwen1.5-110b-chat",
14
+ "qwen1.5-72b-chat",
15
+ "qwen1.5-32b-chat",
16
+ "qwen1.5-14b-chat",
17
+ "qwen1.5-7b-chat",
18
+ "qwq-32b-preview",
19
+ ],
20
+ default_model="qwq-32b-preview",
21
+ src=dashscope_gradio.registry,
22
+ accept_token=not os.getenv("DASHSCOPE_API_KEY"),
23
+ )
24
+
25
+ if __name__ == "__main__":
26
+ demo.launch()