littlebird13 commited on
Commit
8b2f8f3
β€’
1 Parent(s): 4e04d18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-max',
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-max', elem_classes="control-height")
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():