Update app.py
Browse files
app.py
CHANGED
@@ -234,8 +234,9 @@ with gr.Blocks() as demo:
|
|
234 |
start_button.click(fn=start_processing, outputs=status_display)
|
235 |
stop_button.click(fn=stop_processing, outputs=status_display)
|
236 |
|
237 |
-
#
|
238 |
-
gr.Timer(
|
|
|
239 |
|
240 |
if __name__ == "__main__":
|
241 |
logging.info('Starting project...')
|
|
|
234 |
start_button.click(fn=start_processing, outputs=status_display)
|
235 |
stop_button.click(fn=stop_processing, outputs=status_display)
|
236 |
|
237 |
+
# Timer to refresh the status every 2 seconds
|
238 |
+
timer = gr.Timer(interval=2)
|
239 |
+
timer.every(fn=update_status, outputs=status_display)
|
240 |
|
241 |
if __name__ == "__main__":
|
242 |
logging.info('Starting project...')
|