LPX commited on
Commit
24fcbcc
ยท
1 Parent(s): 5ccc3f6

๐Ÿ› fix(predict): update augment_checkboxgroup change

Browse files

- replaces `gr.Slider.update` with `gr.update` for better compatibility

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -229,7 +229,7 @@ with gr.Blocks() as iface:
229
  results_html = gr.HTML(label="Model Predictions")
230
  outputs = [image_output, results_html]
231
 
232
- augment_checkboxgroup.change(lambda methods: gr.Slider.update(visible="rotate" in methods), inputs=[augment_checkboxgroup], outputs=[rotate_slider])
233
 
234
  predict_button.click(
235
  fn=predict_image_with_html,
 
229
  results_html = gr.HTML(label="Model Predictions")
230
  outputs = [image_output, results_html]
231
 
232
+ augment_checkboxgroup.change(lambda methods: gr.update(visible="rotate" in methods), inputs=[augment_checkboxgroup], outputs=[rotate_slider])
233
 
234
  predict_button.click(
235
  fn=predict_image_with_html,