Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,26 @@
|
|
| 1 |
-
import
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|