Spaces:
Running
on
Zero
Running
on
Zero
interface improvements
Browse files
app.py
CHANGED
@@ -36,12 +36,8 @@ citation = """> **Citation:**
|
|
36 |
|
37 |
|
38 |
joinus ="""
|
39 |
-
|
40 |
-
🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻
|
41 |
-
[](https://discord.gg/qdfnvSPcqP)
|
42 |
-
On 🤗Huggingface: [MultiTransformer](https://huggingface.co/MultiTransformer)
|
43 |
-
On 🌐Github: [Tonic-AI](https://github.com/tonic-ai) & contribute to🌟 [Build Tonic](https://git.tonic-ai.com/contribute)
|
44 |
-
🤗Big thanks to Yuvi Sharma and all the folks at huggingface for the community grant 🤗
|
45 |
"""
|
46 |
|
47 |
# Build the initial system prompt
|
@@ -176,18 +172,22 @@ def main():
|
|
176 |
with gr.Blocks() as demo:
|
177 |
# Title and Model Description
|
178 |
gr.Markdown("""# 🙋🏻♂️Welcome to 🌟Tonic's 🌕💉👨🏻🔬Moonshot Math""")
|
179 |
-
gr.
|
180 |
-
|
|
|
|
|
|
|
181 |
with gr.Row():
|
182 |
with gr.Column():
|
183 |
-
chat = gr.Chatbot(label="Chat History")
|
184 |
user_input = gr.Textbox(label="Your message or formal statement", lines=4)
|
185 |
informal = gr.Textbox(value=additional_info_prompt, label="Optional informal prefix")
|
186 |
max_tokens = gr.Slider(minimum=150, maximum=4096, value=2500, label="Max Tokens")
|
187 |
submit = gr.Button("Send")
|
188 |
with gr.Column():
|
189 |
-
|
190 |
-
|
|
|
|
|
191 |
state = gr.State([])
|
192 |
# On submit, call chat_handler
|
193 |
submit.click(chat_handler, [user_input, informal, max_tokens, state], [chat, json_out, code_out, state])
|
|
|
36 |
|
37 |
|
38 |
joinus ="""
|
39 |
+
## Join us :
|
40 |
+
🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻 [](https://discord.gg/qdfnvSPcqP) On 🤗Huggingface:[MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Tonic-AI](https://github.com/tonic-ai) & contribute to🌟 [MultiTonic](https://github.com/MultiTonic)🤗Big thanks to Yuvi Sharma and all the folks at huggingface for the community grant 🤗
|
|
|
|
|
|
|
|
|
41 |
"""
|
42 |
|
43 |
# Build the initial system prompt
|
|
|
172 |
with gr.Blocks() as demo:
|
173 |
# Title and Model Description
|
174 |
gr.Markdown("""# 🙋🏻♂️Welcome to 🌟Tonic's 🌕💉👨🏻🔬Moonshot Math""")
|
175 |
+
with gr.Row:
|
176 |
+
with gr.Column:
|
177 |
+
gr.Markdown(description)
|
178 |
+
with gr.Column:
|
179 |
+
gr.Markdown(joinus)
|
180 |
with gr.Row():
|
181 |
with gr.Column():
|
|
|
182 |
user_input = gr.Textbox(label="Your message or formal statement", lines=4)
|
183 |
informal = gr.Textbox(value=additional_info_prompt, label="Optional informal prefix")
|
184 |
max_tokens = gr.Slider(minimum=150, maximum=4096, value=2500, label="Max Tokens")
|
185 |
submit = gr.Button("Send")
|
186 |
with gr.Column():
|
187 |
+
chat = gr.Chatbot(label="Chat History")
|
188 |
+
with gr.Accordion("Complete Output", open=False):
|
189 |
+
json_out = gr.JSON(label="Full Output")
|
190 |
+
code_out = gr.Code(label="Extracted Lean4 Code", language="python")
|
191 |
state = gr.State([])
|
192 |
# On submit, call chat_handler
|
193 |
submit.click(chat_handler, [user_input, informal, max_tokens, state], [chat, json_out, code_out, state])
|