Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -281,7 +281,9 @@ with gr.Blocks(title="ZeroEngine Kernel 6.5") as demo:
|
|
| 281 |
res = kernel.boot_kernel(repo, file)
|
| 282 |
yield res, gr.update()
|
| 283 |
|
| 284 |
-
|
|
|
|
|
|
|
| 285 |
|
| 286 |
scan_btn.click(on_scan, [repo_input], [quant_dropdown, log_output])
|
| 287 |
boot_btn.click(on_boot, [repo_input, quant_dropdown], [boot_status, log_output])
|
|
|
|
| 281 |
res = kernel.boot_kernel(repo, file)
|
| 282 |
yield res, gr.update()
|
| 283 |
|
| 284 |
+
# FIXED: Use gr.Timer for periodic updates (Gradio 6.5.0 compatible)
|
| 285 |
+
timer = gr.Timer(value=2)
|
| 286 |
+
timer.tick(update_stats, None, [ram_metric, cpu_metric])
|
| 287 |
|
| 288 |
scan_btn.click(on_scan, [repo_input], [quant_dropdown, log_output])
|
| 289 |
boot_btn.click(on_boot, [repo_input, quant_dropdown], [boot_status, log_output])
|