littlebird13 commited on
Commit
8f2eed8
1 Parent(s): 390427a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -64,7 +64,7 @@ def get_math_response(image_description, user_question):
64
  query = f"{content}User question: {user_question}"
65
  math_messages.append({'role': 'user', 'content': query})
66
  response = Generation.call(
67
- model="qwen2-math-72b-instruct",
68
  messages=math_messages,
69
  result_format='message',
70
  stream=True
@@ -110,9 +110,9 @@ def tabs_select(e: gr.SelectData, _state):
110
  with gr.Blocks(css=css) as demo:
111
  gr.HTML("""\
112
  <p align="center"><img src="https://modelscope.oss-cn-beijing.aliyuncs.com/resource/qwen.png" style="height: 60px"/><p>"""
113
- """<center><font size=8>📖 Qwen2-Math Demo</center>"""
114
  """\
115
- <center><font size=3>This WebUI is based on Qwen2-VL for OCR and Qwen2-Math for mathematical reasoning. You can input either images or texts of mathematical or arithmetic problems.</center>"""
116
  )
117
  state = gr.State({"tab_index": 0})
118
  with gr.Row():
 
64
  query = f"{content}User question: {user_question}"
65
  math_messages.append({'role': 'user', 'content': query})
66
  response = Generation.call(
67
+ model="qwen2.5-math-72b-instruct",
68
  messages=math_messages,
69
  result_format='message',
70
  stream=True
 
110
  with gr.Blocks(css=css) as demo:
111
  gr.HTML("""\
112
  <p align="center"><img src="https://modelscope.oss-cn-beijing.aliyuncs.com/resource/qwen.png" style="height: 60px"/><p>"""
113
+ """<center><font size=8>📖 Qwen2.5-Math Demo</center>"""
114
  """\
115
+ <center><font size=3>This WebUI is based on Qwen2-VL for OCR and Qwen2.5-Math for mathematical reasoning. You can input either images or texts of mathematical or arithmetic problems.</center>"""
116
  )
117
  state = gr.State({"tab_index": 0})
118
  with gr.Row():