Spaces:
Runtime error
Runtime error
Commit
·
4e04d18
1
Parent(s):
31b7a7f
Update app.py
Browse files
app.py
CHANGED
|
@@ -266,7 +266,7 @@ def generate_response(input):
|
|
| 266 |
messages = [{'role': 'system', 'content': """You are a helpful assistant."""},
|
| 267 |
{'role': 'user', 'content': input}]
|
| 268 |
response = dashscope.Generation.call(
|
| 269 |
-
model='qwen-
|
| 270 |
messages=messages,
|
| 271 |
# set the random seed, optional, default to 1234 if not set
|
| 272 |
seed=random.randint(1, 10000),
|
|
@@ -304,7 +304,7 @@ with block as demo:
|
|
| 304 |
question_info = gr.Markdown(update_question_info(current_chapter_index, current_challenge_index))
|
| 305 |
challenge_info = gr.Textbox(value=update_challenge_info(current_chapter_index, current_challenge_index), label="当前挑战", disabled=True)
|
| 306 |
challenge_result = gr.Textbox(label="挑战结果", disabled=True)
|
| 307 |
-
chatbot = gr.Chatbot(lines=8, label='Qwen-
|
| 308 |
message = gr.Textbox(lines=2, label='输入')
|
| 309 |
|
| 310 |
with gr.Row():
|
|
|
|
| 266 |
messages = [{'role': 'system', 'content': """You are a helpful assistant."""},
|
| 267 |
{'role': 'user', 'content': input}]
|
| 268 |
response = dashscope.Generation.call(
|
| 269 |
+
model='qwen-max',
|
| 270 |
messages=messages,
|
| 271 |
# set the random seed, optional, default to 1234 if not set
|
| 272 |
seed=random.randint(1, 10000),
|
|
|
|
| 304 |
question_info = gr.Markdown(update_question_info(current_chapter_index, current_challenge_index))
|
| 305 |
challenge_info = gr.Textbox(value=update_challenge_info(current_chapter_index, current_challenge_index), label="当前挑战", disabled=True)
|
| 306 |
challenge_result = gr.Textbox(label="挑战结果", disabled=True)
|
| 307 |
+
chatbot = gr.Chatbot(lines=8, label='Qwen-max', elem_classes="control-height")
|
| 308 |
message = gr.Textbox(lines=2, label='输入')
|
| 309 |
|
| 310 |
with gr.Row():
|