Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -155,6 +155,8 @@ def update_textboxes(k):
|
|
155 |
def clear_textboxes():
|
156 |
return [gr.update(value='') for _ in range(max_textboxes)]
|
157 |
|
|
|
|
|
158 |
|
159 |
with gr.Blocks() as demo:
|
160 |
with gr.Row():
|
@@ -169,6 +171,8 @@ with gr.Blocks() as demo:
|
|
169 |
|
170 |
btn.click(fn=predict, inputs=textboxes, outputs=output)
|
171 |
btn_clear.click(fn=clear_textboxes, outputs=textboxes)
|
|
|
|
|
172 |
|
173 |
demo.launch()
|
174 |
|
|
|
155 |
def clear_textboxes():
|
156 |
return [gr.update(value='') for _ in range(max_textboxes)]
|
157 |
|
158 |
+
def clear_output_box():
|
159 |
+
return gr.update(value='')
|
160 |
|
161 |
with gr.Blocks() as demo:
|
162 |
with gr.Row():
|
|
|
171 |
|
172 |
btn.click(fn=predict, inputs=textboxes, outputs=output)
|
173 |
btn_clear.click(fn=clear_textboxes, outputs=textboxes)
|
174 |
+
btn_clear.click(fn=clear_output_box, outputs=output)
|
175 |
+
|
176 |
|
177 |
demo.launch()
|
178 |
|