Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
warning
Browse files
app.py
CHANGED
|
@@ -393,7 +393,7 @@ with demo:
|
|
| 393 |
# submission_result,
|
| 394 |
# )
|
| 395 |
|
| 396 |
-
with gr.
|
| 397 |
with gr.Accordion("📙 Citation", open=False):
|
| 398 |
citation_button = gr.Textbox(
|
| 399 |
value=CITATION_BUTTON_TEXT,
|
|
@@ -402,7 +402,13 @@ with demo:
|
|
| 402 |
elem_id="citation-button",
|
| 403 |
show_copy_button=True,
|
| 404 |
)
|
| 405 |
-
csv = gr.File(interactive=False, value="output.csv")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 406 |
|
| 407 |
scheduler = BackgroundScheduler()
|
| 408 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
|
|
|
| 393 |
# submission_result,
|
| 394 |
# )
|
| 395 |
|
| 396 |
+
with gr.Column():
|
| 397 |
with gr.Accordion("📙 Citation", open=False):
|
| 398 |
citation_button = gr.Textbox(
|
| 399 |
value=CITATION_BUTTON_TEXT,
|
|
|
|
| 402 |
elem_id="citation-button",
|
| 403 |
show_copy_button=True,
|
| 404 |
)
|
| 405 |
+
csv = gr.File(interactive=False, value="output.csv", visible=False)
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
|
| 409 |
+
def update_visibility(radio):
|
| 410 |
+
csv.update(visible=True)
|
| 411 |
+
deleted_models_visibility.change(update_visibility, deleted_models_visibility, csv)
|
| 412 |
|
| 413 |
scheduler = BackgroundScheduler()
|
| 414 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|