Spaces:
Runtime error
Runtime error
๐ fix(interface): fix slider bugs
Browse files- fix slider input types (rotate, noise, sharpen)
- add default values to the sliders for better user experience
app.py
CHANGED
|
@@ -284,7 +284,14 @@ with gr.Blocks() as iface:
|
|
| 284 |
)
|
| 285 |
augment_button.click( # Connect Augment button to the function
|
| 286 |
fn=predict_image_with_html,
|
| 287 |
-
inputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 288 |
outputs=outputs
|
| 289 |
)
|
| 290 |
predict_button.click(
|
|
|
|
| 284 |
)
|
| 285 |
augment_button.click( # Connect Augment button to the function
|
| 286 |
fn=predict_image_with_html,
|
| 287 |
+
inputs=[
|
| 288 |
+
image_input,
|
| 289 |
+
confidence_slider,
|
| 290 |
+
gr.CheckboxGroup(["rotate", "add_noise", "sharpen"], value=["rotate", "add_noise", "sharpen"]), # Default values
|
| 291 |
+
rotate_slider,
|
| 292 |
+
noise_slider,
|
| 293 |
+
sharpen_slider
|
| 294 |
+
],
|
| 295 |
outputs=outputs
|
| 296 |
)
|
| 297 |
predict_button.click(
|