Orion-zhen commited on
Commit
3e484e4
Β·
verified Β·
1 Parent(s): 109cb5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -59,12 +59,11 @@ temperature = gr.Slider(
59
  top_p = gr.Slider(minimum=0.0, maximum=1.0, value=0.95, step=0.05, label="Top P", render=False)
60
  input_text = gr.Textbox(label="Ask math questions here", render=False)
61
  submit_btn = gr.Button(value="Ask", render=False)
62
- banner = gr.HTML("""
63
- <p align="center"><img src="https://modelscope.oss-cn-beijing.aliyuncs.com/resource/qwen.png" style="height: 60px"/><p>
64
- <center><font size=8>πŸ“– Qwen2.5-Math GGUF</center>
65
- <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>
66
- """,
67
- render=False,
68
  )
69
 
70
 
@@ -111,7 +110,7 @@ with gr.Blocks(css=CSS, theme="NoCrypt/miku") as demo:
111
  outputs=output_md,
112
  )
113
  with gr.Column():
114
- # banner.render()
115
  with gr.Row():
116
  with gr.Column():
117
  input_text.render()
 
59
  top_p = gr.Slider(minimum=0.0, maximum=1.0, value=0.95, step=0.05, label="Top P", render=False)
60
  input_text = gr.Textbox(label="Ask math questions here", render=False)
61
  submit_btn = gr.Button(value="Ask", render=False)
62
+ banner = gr.HTML("""\
63
+ <p align="center"><img src="https://modelscope.oss-cn-beijing.aliyuncs.com/resource/qwen.png" style="height: 60px"/><p>"""
64
+ """<center><font size=8>πŸ“– Qwen2.5-Math GGUF</center>"""
65
+ """\
66
+ <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>"""
 
67
  )
68
 
69
 
 
110
  outputs=output_md,
111
  )
112
  with gr.Column():
113
+ banner.render()
114
  with gr.Row():
115
  with gr.Column():
116
  input_text.render()