Spaces:
Sleeping
Sleeping
Commit
β’
8b2f8f3
1
Parent(s):
4e04d18
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-plus',
|
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-plus', elem_classes="control-height")
|
308 |
message = gr.Textbox(lines=2, label='θΎε
₯')
|
309 |
|
310 |
with gr.Row():
|