๐ fix(predict): update augment_checkboxgroup change
Browse files- replaces `gr.Slider.update` with `gr.update` for better compatibility
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.
|
| 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,
|