Spaces:
Running
on
Zero
Running
on
Zero
fix typo
Browse files
app.py
CHANGED
@@ -188,14 +188,13 @@ def main():
|
|
188 |
with gr.Blocks() as demo:
|
189 |
# Title and Model Description
|
190 |
gr.Markdown("""# ๐๐ปโโ๏ธWelcome to ๐Tonic's ๐๐๐จ๐ปโ๐ฌMoonshot Math""")
|
191 |
-
with gr.Row:
|
192 |
-
with gr.Column:
|
193 |
gr.Markdown(description)
|
194 |
-
with gr.Column:
|
195 |
gr.Markdown(joinus)
|
196 |
with gr.Row():
|
197 |
with gr.Column():
|
198 |
-
|
199 |
user_input = gr.Textbox(label="Your message or formal statement", lines=4)
|
200 |
informal = gr.Textbox(value=additional_info_prompt, label="Optional informal prefix")
|
201 |
max_tokens = gr.Slider(minimum=150, maximum=4096, value=2500, label="Max Tokens")
|
@@ -208,10 +207,10 @@ def main():
|
|
208 |
state = gr.State([])
|
209 |
submit.click(chat_handler, [user_input, informal, max_tokens, state], [chat, json_out, code_out, state])
|
210 |
gr.Examples(
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
gr.Markdown(citation)
|
216 |
demo.launch()
|
217 |
|
|
|
188 |
with gr.Blocks() as demo:
|
189 |
# Title and Model Description
|
190 |
gr.Markdown("""# ๐๐ปโโ๏ธWelcome to ๐Tonic's ๐๐๐จ๐ปโ๐ฌMoonshot Math""")
|
191 |
+
with gr.Row():
|
192 |
+
with gr.Column():
|
193 |
gr.Markdown(description)
|
194 |
+
with gr.Column():
|
195 |
gr.Markdown(joinus)
|
196 |
with gr.Row():
|
197 |
with gr.Column():
|
|
|
198 |
user_input = gr.Textbox(label="Your message or formal statement", lines=4)
|
199 |
informal = gr.Textbox(value=additional_info_prompt, label="Optional informal prefix")
|
200 |
max_tokens = gr.Slider(minimum=150, maximum=4096, value=2500, label="Max Tokens")
|
|
|
207 |
state = gr.State([])
|
208 |
submit.click(chat_handler, [user_input, informal, max_tokens, state], [chat, json_out, code_out, state])
|
209 |
gr.Examples(
|
210 |
+
examples=examples,
|
211 |
+
inputs=["user_input", "informal", "max_tokens"],
|
212 |
+
label="Example Problems"
|
213 |
+
)
|
214 |
gr.Markdown(citation)
|
215 |
demo.launch()
|
216 |
|