Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,14 +103,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 103 |
input_text = gr.Textbox(label="Input your question")
|
| 104 |
with gr.Row():
|
| 105 |
with gr.Column():
|
| 106 |
-
clear_btn = gr.ClearButton([
|
| 107 |
with gr.Column():
|
| 108 |
submit_btn = gr.Button("Submit", variant="primary")
|
| 109 |
with gr.Column():
|
| 110 |
output_md = gr.Markdown(label="Answer", elem_id="qwen-md")
|
| 111 |
submit_btn.click(
|
| 112 |
fn=math_chat_bot,
|
| 113 |
-
inputs=[
|
| 114 |
outputs=output_md
|
| 115 |
)
|
| 116 |
demo.launch()
|
|
|
|
| 103 |
input_text = gr.Textbox(label="Input your question")
|
| 104 |
with gr.Row():
|
| 105 |
with gr.Column():
|
| 106 |
+
clear_btn = gr.ClearButton([input_image, input_sketchpad, input_text])
|
| 107 |
with gr.Column():
|
| 108 |
submit_btn = gr.Button("Submit", variant="primary")
|
| 109 |
with gr.Column():
|
| 110 |
output_md = gr.Markdown(label="Answer", elem_id="qwen-md")
|
| 111 |
submit_btn.click(
|
| 112 |
fn=math_chat_bot,
|
| 113 |
+
inputs=[input_image, input_sketchpad, input_text, state],
|
| 114 |
outputs=output_md
|
| 115 |
)
|
| 116 |
demo.launch()
|