Orion-zhen
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,12 @@ 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 |
|
61 |
|
62 |
# Gradio 函数
|
@@ -95,13 +101,13 @@ def respond(
|
|
95 |
yield message_repl
|
96 |
|
97 |
|
98 |
-
with gr.Blocks(css=CSS) as demo:
|
99 |
submit_btn.click(
|
100 |
fn=respond,
|
101 |
inputs=[input_text, target_lang, new_tokens, temperature, top_p],
|
102 |
outputs=output_md,
|
103 |
)
|
104 |
-
|
105 |
with gr.Row():
|
106 |
with gr.Column():
|
107 |
input_text.render()
|
|
|
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 |
|
68 |
# Gradio 函数
|
|
|
101 |
yield message_repl
|
102 |
|
103 |
|
104 |
+
with gr.Blocks(css=CSS, theme="NoCrypt/miku") as demo:
|
105 |
submit_btn.click(
|
106 |
fn=respond,
|
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()
|