Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -454,11 +454,10 @@ with demo:
|
|
| 454 |
tab_names=["Audio", "Video", "YouTube"]
|
| 455 |
)
|
| 456 |
with gr.Group():
|
| 457 |
-
sys_status_output = gr.Markdown(label="System Status", container=True, line_breaks=True, show_copy_button=True)
|
| 458 |
refresh_button = gr.Button("Refresh System Status")
|
| 459 |
refresh_button.click(refresh_status, None, sys_status_output)
|
| 460 |
sys_status_output.value = refresh_status()
|
| 461 |
-
demo.load(update_status, None, sys_status_output, every=3)
|
| 462 |
|
| 463 |
if __name__ == "__main__":
|
| 464 |
demo.queue().launch(ssr_mode=False)
|
|
|
|
| 454 |
tab_names=["Audio", "Video", "YouTube"]
|
| 455 |
)
|
| 456 |
with gr.Group():
|
| 457 |
+
sys_status_output = gr.Markdown(value=refresh_status, label="System Status", container=True, line_breaks=True, show_copy_button=True, every=3)
|
| 458 |
refresh_button = gr.Button("Refresh System Status")
|
| 459 |
refresh_button.click(refresh_status, None, sys_status_output)
|
| 460 |
sys_status_output.value = refresh_status()
|
|
|
|
| 461 |
|
| 462 |
if __name__ == "__main__":
|
| 463 |
demo.queue().launch(ssr_mode=False)
|