littlebird13
commited on
Commit
•
7bb5b59
1
Parent(s):
3878434
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,6 @@ from config import DEMO_LIST, SystemPrompt
|
|
18 |
|
19 |
YOUR_API_TOKEN = os.getenv('YOUR_API_TOKEN')
|
20 |
dashscope.api_key = YOUR_API_TOKEN
|
21 |
-
dashscope.base_http_api_url = 'https://poc-dashscope.aliyuncs.com/api/v1'
|
22 |
|
23 |
History = List[Tuple[str, str]]
|
24 |
Messages = List[Dict[str, str]]
|
@@ -161,7 +160,7 @@ with gr.Blocks(css_paths="app.css") as demo:
|
|
161 |
messages = history_to_messages(_history, _setting['system'])
|
162 |
messages.append({'role': Role.USER, 'content': query})
|
163 |
|
164 |
-
gen = Generation.call(model="
|
165 |
messages=messages,
|
166 |
result_format='message',
|
167 |
stream=True)
|
|
|
18 |
|
19 |
YOUR_API_TOKEN = os.getenv('YOUR_API_TOKEN')
|
20 |
dashscope.api_key = YOUR_API_TOKEN
|
|
|
21 |
|
22 |
History = List[Tuple[str, str]]
|
23 |
Messages = List[Dict[str, str]]
|
|
|
160 |
messages = history_to_messages(_history, _setting['system'])
|
161 |
messages.append({'role': Role.USER, 'content': query})
|
162 |
|
163 |
+
gen = Generation.call(model="qwen2.5-coder-32b-instruct",
|
164 |
messages=messages,
|
165 |
result_format='message',
|
166 |
stream=True)
|