Spaces:
Sleeping
Sleeping
fixed lambdas
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ with gr.Blocks(title="Time series anomaly detection with Chronos2") as demo:
|
|
| 105 |
)
|
| 106 |
|
| 107 |
detect_button.click(
|
| 108 |
-
gr.update(visible=True),
|
| 109 |
inputs=None,
|
| 110 |
outputs=processing_msg
|
| 111 |
)
|
|
@@ -121,7 +121,7 @@ with gr.Blocks(title="Time series anomaly detection with Chronos2") as demo:
|
|
| 121 |
)
|
| 122 |
|
| 123 |
detect_button.click(
|
| 124 |
-
gr.update(visible=False),
|
| 125 |
inputs=None,
|
| 126 |
outputs=processing_msg
|
| 127 |
)
|
|
|
|
| 105 |
)
|
| 106 |
|
| 107 |
detect_button.click(
|
| 108 |
+
lambda : gr.update(visible=True),
|
| 109 |
inputs=None,
|
| 110 |
outputs=processing_msg
|
| 111 |
)
|
|
|
|
| 121 |
)
|
| 122 |
|
| 123 |
detect_button.click(
|
| 124 |
+
lambda : gr.update(visible=False),
|
| 125 |
inputs=None,
|
| 126 |
outputs=processing_msg
|
| 127 |
)
|