Spaces:
Runtime error
Runtime error
Update app.py
Browse files26 unmodified lines2728293031323334353626 unmodified lineswith gr.Blocks() as demo:gr.Markdown(title)with gr.Row():question = gr.Textbox(lines=5, label="Enter your math problem")max_tokens = gr.Slider(minimum=150, maximum=1200, value=250, label="Max Tokens")submit_button = gr.Button("Solve")output = gr.Textbox(label="๐ฎDeepSeekMath๐")submit_button.click(fn=solve_math_problem, inputs=[question, max_tokens], outputs=output)26 unmodified lines2728293031323334353626 unmodified lineswith gr.Blocks() as demo:gr.Markdown(title)with gr.Row():question = gr.Code(language='python', value='what is the integral of x^2 from 0 to 2?', label="Enter your math problem")max_tokens = gr.Slider(minimum=150, maximum=1200, value=250, label="Max Tokens")submit_button = gr.Button("Solve")output = gr.Code(label="๐ฎDeepSeekMath๐", interactive=False)submit_button.click(fn=solve_math_problem, inputs=[question, max_tokens], outputs=output)
app.py+2-2