skullcandy42 commited on
Commit
90dc3ae
·
verified ·
1 Parent(s): 874d8b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -61,7 +61,7 @@ input_text = gr.Textbox(label="Ask math questions here", render=False)
61
  submit_btn = gr.Button(value="Ask", render=False)
62
  banner = gr.Markdown(value="""
63
  # 📖 Qwen2.5-Math GGUF
64
- This WebUI is based on Qwen2.5-Math-7B-Instruct-GGUF for mathematical reasoning. You can input texts of mathematical or arithmetic problems.
65
  """
66
  )
67
 
@@ -70,9 +70,9 @@ This WebUI is based on Qwen2.5-Math-7B-Instruct-GGUF for mathematical reasoning.
70
  def respond(
71
  input_text,
72
  lang="Chinese",
73
- max_tokens=2048,
74
  temperature=0.5,
75
- top_p=0.95,
76
  ):
77
  if lang == "Chinese":
78
  sys_msg = "你是一个乐于助人的数学助手. 你使用中文回答问题"
 
61
  submit_btn = gr.Button(value="Ask", render=False)
62
  banner = gr.Markdown(value="""
63
  # 📖 Qwen2.5-Math GGUF
64
+ This chatbot is based on the Qwen2.5-Math-7B-Instruct-GGUF model. You can ask it any math problem.
65
  """
66
  )
67
 
 
70
  def respond(
71
  input_text,
72
  lang="Chinese",
73
+ max_tokens=300,
74
  temperature=0.5,
75
+ top_p=0.9,
76
  ):
77
  if lang == "Chinese":
78
  sys_msg = "你是一个乐于助人的数学助手. 你使用中文回答问题"