Nuzz23 commited on
Commit
af84893
·
1 Parent(s): 09e3c2d

fixed lambdas

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
  )