Update app.py
Browse files
app.py
CHANGED
@@ -606,28 +606,6 @@ with gr.Blocks() as demo:
|
|
606 |
column_widths=["10%", "30%", "30%", "30%"] # Adjust column widths for better display
|
607 |
)
|
608 |
|
609 |
-
# Add JavaScript for auto-clicking
|
610 |
-
demo.load(None, None, None, _js="""
|
611 |
-
function() {
|
612 |
-
// Initial delay of 30 seconds
|
613 |
-
setTimeout(function() {
|
614 |
-
// Function to click the button
|
615 |
-
function clickButton() {
|
616 |
-
const buttons = document.getElementsByClassName('fa fa-angle-right');
|
617 |
-
if (buttons.length > 0) {
|
618 |
-
buttons[0].click();
|
619 |
-
}
|
620 |
-
}
|
621 |
-
|
622 |
-
// Click immediately after initial delay
|
623 |
-
clickButton();
|
624 |
-
|
625 |
-
// Then click every 5 seconds
|
626 |
-
setInterval(clickButton, 5000);
|
627 |
-
}, 30000);
|
628 |
-
}
|
629 |
-
""")
|
630 |
-
|
631 |
run_button.click(
|
632 |
fn=run_and_submit_all,
|
633 |
outputs=[status_output, results_table]
|
|
|
606 |
column_widths=["10%", "30%", "30%", "30%"] # Adjust column widths for better display
|
607 |
)
|
608 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
run_button.click(
|
610 |
fn=run_and_submit_all,
|
611 |
outputs=[status_output, results_table]
|