gatesla commited on
Commit
5009ca6
1 Parent(s): f86c37f

Fixed the function to update

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -184,8 +184,9 @@ h1#title {
184
  demo = gr.Blocks(css=css)
185
 
186
 
187
- def changing(inVal, outBox):
188
- return gr.Button('Detect', interactive=True), gr.Button('Detect', interactive=True)
 
189
 
190
 
191
 
 
184
  demo = gr.Blocks(css=css)
185
 
186
 
187
+ def changing():
188
+ # https://discuss.huggingface.co/t/how-to-programmatically-enable-or-disable-components/52350/4
189
+ return gr.Button.update(interactive=True), gr.Button.update(interactive=True)
190
 
191
 
192