Spaces:
Runtime error
Runtime error
Commit
Β·
6f9cae9
1
Parent(s):
d1176bd
Updating clear button
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 45 |
image = gr.Image(width=320, height=320, label="Input Receipt")
|
| 46 |
width_ths = gr.Slider(0, 10, 7.7, 0.1, label="Width Threshold to merge bounding boxes")
|
| 47 |
with gr.Row():
|
| 48 |
-
clear_btn = gr.ClearButton()
|
| 49 |
submit_btn = gr.Button("Submit", variant='primary')
|
| 50 |
with gr.Column():
|
| 51 |
ocr_out = gr.Textbox(label="OCR Output", type="text")
|
|
|
|
| 45 |
image = gr.Image(width=320, height=320, label="Input Receipt")
|
| 46 |
width_ths = gr.Slider(0, 10, 7.7, 0.1, label="Width Threshold to merge bounding boxes")
|
| 47 |
with gr.Row():
|
| 48 |
+
clear_btn = gr.ClearButton(components=[image, width_ths])
|
| 49 |
submit_btn = gr.Button("Submit", variant='primary')
|
| 50 |
with gr.Column():
|
| 51 |
ocr_out = gr.Textbox(label="OCR Output", type="text")
|