Tonic commited on
Commit
8ea52ad
1 Parent(s): ae2f848

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -45,8 +45,8 @@ def main():
45
  with gr.Blocks() as demo:
46
  gr.Markdown(title)
47
  with gr.Row():
48
- user_message = gr.Code(label="🫡Enter your math query here...", language = "r" , lines=3, value="""F(x) &= \int^a_b \frac{1}{3}x^3""")
49
- system_message = gr.Textbox(label="📉System Prompt", lines=2, placeholder="Optional: give precise instructions to resolve the problem provided above:")
50
 
51
  with gr.Accordion("Advanced Settings"):
52
  with gr.Row():
@@ -55,12 +55,14 @@ def main():
55
  top_p = gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.01, maximum=0.99)
56
  repetition_penalty = gr.Slider(label="Repetition penalty", value=1.9, minimum=1.0, maximum=2.0)
57
  do_sample = gr.Checkbox(label="Uncheck for faster inference", value=False)
 
 
 
58
  gr.Button("Try🫡📉MetaMath").click(
59
  predict_math_bot,
60
  inputs=[user_message, system_message, max_new_tokens, temperature, top_p, repetition_penalty, do_sample],
61
  outputs=output_text
62
  )
63
- output_text = RichTextbox(label="🫡📉MetaMath", interactive=True)
64
 
65
  demo.launch()
66
 
 
45
  with gr.Blocks() as demo:
46
  gr.Markdown(title)
47
  with gr.Row():
48
+ user_message = gr.Code(label="🫡Enter your math query here...", language="r", lines=3, value="""F(x) &= \int^a_b \frac{1}{3}x^3""")
49
+ system_message = gr.Textbox(label="📉System Prompt", lines=2, placeholder="Optional: give precise instructions to resolve the problem provided above, produce complete answer in Latex format:")
50
 
51
  with gr.Accordion("Advanced Settings"):
52
  with gr.Row():
 
55
  top_p = gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.01, maximum=0.99)
56
  repetition_penalty = gr.Slider(label="Repetition penalty", value=1.9, minimum=1.0, maximum=2.0)
57
  do_sample = gr.Checkbox(label="Uncheck for faster inference", value=False)
58
+
59
+ output_text = RichTextbox(label="🫡📉MetaMath", interactive=True)
60
+
61
  gr.Button("Try🫡📉MetaMath").click(
62
  predict_math_bot,
63
  inputs=[user_message, system_message, max_new_tokens, temperature, top_p, repetition_penalty, do_sample],
64
  outputs=output_text
65
  )
 
66
 
67
  demo.launch()
68