Orion-zhen
commited on
Update app.py
Browse files
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 |
-
|
63 |
-
|
64 |
-
|
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 |
-
|
111 |
-
|
112 |
-
with gr.
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
|
|
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()
|