Update app.py
Browse files
app.py
CHANGED
|
@@ -169,7 +169,9 @@ with (gr.Blocks(head=prefer_frontal_cam_html, css=css_image_aspect_ratio) as blo
|
|
| 169 |
|
| 170 |
b = gr.Button('PRESS TO PREDICT')
|
| 171 |
b.click(fn=predict_app, inputs=[im, eater_id], outputs=gr.Info()) # add eater id to input if needed
|
| 172 |
-
|
|
|
|
|
|
|
| 173 |
with gr.Tab(label='ℹ️ Status', id=2):
|
| 174 |
gr.Markdown(' Press the button to see the status of the Application and technical information')
|
| 175 |
load_status_button = gr.Button('Load Status')
|
|
|
|
| 169 |
|
| 170 |
b = gr.Button('PRESS TO PREDICT')
|
| 171 |
b.click(fn=predict_app, inputs=[im, eater_id], outputs=gr.Info()) # add eater id to input if needed
|
| 172 |
+
clear = gr.Button('Clear Image')
|
| 173 |
+
clear.click(fn=lambda: None, outputs=im)
|
| 174 |
+
|
| 175 |
with gr.Tab(label='ℹ️ Status', id=2):
|
| 176 |
gr.Markdown(' Press the button to see the status of the Application and technical information')
|
| 177 |
load_status_button = gr.Button('Load Status')
|