Orion-zhen commited on
Commit
4477004
Β·
verified Β·
1 Parent(s): e716cb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -57,11 +57,11 @@ temperature = gr.Slider(
57
  top_p = gr.Slider(minimum=0.0, maximum=1.0, value=0.95, step=0.05, label="Top P")
58
  input_text = gr.Textbox(label="Ask math questions here...")
59
  submit_btn = gr.Button(value="Ask")
60
- banner = gr.HTML("""\
61
- <p align="center"><img src="https://modelscope.oss-cn-beijing.aliyuncs.com/resource/qwen.png" style="height: 60px"/><p>"""
62
- """<center><font size=8>πŸ“– Qwen2.5-Math GGUF</center>"""
63
- """\
64
- <center><font size=3>This WebUI is based on Qwen2.5-Math-7B-Instruct-GGUF for mathematical reasoning. You can input texts of mathematical or arithmetic problems.</center>"""
65
  )
66
 
67
 
@@ -107,17 +107,18 @@ with gr.Blocks(css=CSS, theme="NoCrypt/miku") as demo:
107
  inputs=[input_text, target_lang, new_tokens, temperature, top_p],
108
  outputs=output_md,
109
  )
110
- banner.render()
111
- with gr.Row():
112
- with gr.Column():
113
- input_text.render()
114
- target_lang.render()
115
- new_tokens.render()
116
- temperature.render()
117
- top_p.render()
118
- submit_btn.render()
119
- with gr.Column():
120
- output_md.render()
 
121
 
122
  if __name__ == "__main__":
123
  demo.launch()
 
57
  top_p = gr.Slider(minimum=0.0, maximum=1.0, value=0.95, step=0.05, label="Top P")
58
  input_text = gr.Textbox(label="Ask math questions here...")
59
  submit_btn = gr.Button(value="Ask")
60
+ banner = gr.HTML("""
61
+ <p align="center"><img src="https://modelscope.oss-cn-beijing.aliyuncs.com/resource/qwen.png" style="height: 60px"/><p>
62
+ <center><font size=8>πŸ“– Qwen2.5-Math GGUF</center>
63
+ <center><font size=3>This WebUI is based on Qwen2.5-Math-7B-Instruct-GGUF for mathematical reasoning. You can input texts of mathematical or arithmetic problems.</center>
64
+ """
65
  )
66
 
67
 
 
107
  inputs=[input_text, target_lang, new_tokens, temperature, top_p],
108
  outputs=output_md,
109
  )
110
+ with gr.Column():
111
+ banner.render()
112
+ with gr.Row():
113
+ with gr.Column():
114
+ input_text.render()
115
+ target_lang.render()
116
+ new_tokens.render()
117
+ temperature.render()
118
+ top_p.render()
119
+ submit_btn.render()
120
+ with gr.Column():
121
+ output_md.render()
122
 
123
  if __name__ == "__main__":
124
  demo.launch()