Spaces:
Sleeping
Sleeping
fix
Browse files
app.py
CHANGED
|
@@ -611,8 +611,7 @@ def create_interface():
|
|
| 611 |
# Register event handlers
|
| 612 |
check_button.click(
|
| 613 |
fn=lambda: check_for_updates(),
|
| 614 |
-
outputs=[status_md]
|
| 615 |
-
every=None
|
| 616 |
).then(
|
| 617 |
fn=update_status,
|
| 618 |
outputs=[status_md, last_check, up_to_date, progress, current_task,
|
|
@@ -621,20 +620,18 @@ def create_interface():
|
|
| 621 |
|
| 622 |
process_button.click(
|
| 623 |
fn=lambda: process_quantization(),
|
| 624 |
-
outputs=[status_md]
|
| 625 |
-
every=None
|
| 626 |
).then(
|
| 627 |
fn=update_status,
|
| 628 |
outputs=[status_md, last_check, up_to_date, progress, current_task,
|
| 629 |
completed_list, failed_list, error_text, resource_info, check_button, process_button]
|
| 630 |
)
|
| 631 |
|
| 632 |
-
# Add an interval for updating the UI during processing
|
| 633 |
demo.load(
|
| 634 |
fn=update_status,
|
| 635 |
outputs=[status_md, last_check, up_to_date, progress, current_task,
|
| 636 |
-
completed_list, failed_list, error_text, resource_info, check_button, process_button]
|
| 637 |
-
every=3 # Update UI more frequently for better feedback
|
| 638 |
)
|
| 639 |
|
| 640 |
# Schedule periodic checks for updates - but less frequently for free tier
|
|
|
|
| 611 |
# Register event handlers
|
| 612 |
check_button.click(
|
| 613 |
fn=lambda: check_for_updates(),
|
| 614 |
+
outputs=[status_md]
|
|
|
|
| 615 |
).then(
|
| 616 |
fn=update_status,
|
| 617 |
outputs=[status_md, last_check, up_to_date, progress, current_task,
|
|
|
|
| 620 |
|
| 621 |
process_button.click(
|
| 622 |
fn=lambda: process_quantization(),
|
| 623 |
+
outputs=[status_md]
|
|
|
|
| 624 |
).then(
|
| 625 |
fn=update_status,
|
| 626 |
outputs=[status_md, last_check, up_to_date, progress, current_task,
|
| 627 |
completed_list, failed_list, error_text, resource_info, check_button, process_button]
|
| 628 |
)
|
| 629 |
|
| 630 |
+
# Add an interval for updating the UI during processing
|
| 631 |
demo.load(
|
| 632 |
fn=update_status,
|
| 633 |
outputs=[status_md, last_check, up_to_date, progress, current_task,
|
| 634 |
+
completed_list, failed_list, error_text, resource_info, check_button, process_button]
|
|
|
|
| 635 |
)
|
| 636 |
|
| 637 |
# Schedule periodic checks for updates - but less frequently for free tier
|