Update app.py
Browse files
app.py
CHANGED
|
@@ -556,23 +556,6 @@ def main_ui():
|
|
| 556 |
concurrency_limit=1
|
| 557 |
)
|
| 558 |
|
| 559 |
-
# Sammle alle Info-Komponenten, die versteckt werden sollen
|
| 560 |
-
info_components = []
|
| 561 |
-
for child in demo.children:
|
| 562 |
-
if child != content_area:
|
| 563 |
-
info_components.append(child)
|
| 564 |
-
|
| 565 |
-
# Event-Handler für Start-Button
|
| 566 |
-
start_btn.click(
|
| 567 |
-
fn=lambda: gr.update(visible=True),
|
| 568 |
-
inputs=None,
|
| 569 |
-
outputs=content_area
|
| 570 |
-
).then(
|
| 571 |
-
fn=lambda: [gr.update(visible=False) for _ in info_components],
|
| 572 |
-
inputs=None,
|
| 573 |
-
outputs=info_components
|
| 574 |
-
)
|
| 575 |
-
|
| 576 |
return demo
|
| 577 |
|
| 578 |
|
|
|
|
| 556 |
concurrency_limit=1
|
| 557 |
)
|
| 558 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 559 |
return demo
|
| 560 |
|
| 561 |
|