Spaces:
Running
on
Zero
Running
on
Zero
Disables API endpoints for gradio .change events (#3)
Browse files- Disables API endpoints for gradio .change events (0edafa47833563d005a7c8b23da7ada077ca4793)
Co-authored-by: Sylvain Filoni <[email protected]>
app.py
CHANGED
|
@@ -298,22 +298,26 @@ with gr.Blocks(css=css) as demo:
|
|
| 298 |
upload_image.change(
|
| 299 |
fn=update_preview,
|
| 300 |
inputs=[upload_image, upscale_radio, center_x, center_y],
|
| 301 |
-
outputs=[preview_with_box]
|
|
|
|
| 302 |
)
|
| 303 |
upscale_radio.change(
|
| 304 |
fn=update_preview,
|
| 305 |
inputs=[upload_image, upscale_radio, center_x, center_y],
|
| 306 |
-
outputs=[preview_with_box]
|
|
|
|
| 307 |
)
|
| 308 |
center_x.change(
|
| 309 |
fn=update_preview,
|
| 310 |
inputs=[upload_image, upscale_radio, center_x, center_y],
|
| 311 |
-
outputs=[preview_with_box]
|
|
|
|
| 312 |
)
|
| 313 |
center_y.change(
|
| 314 |
fn=update_preview,
|
| 315 |
inputs=[upload_image, upscale_radio, center_x, center_y],
|
| 316 |
-
outputs=[preview_with_box]
|
|
|
|
| 317 |
)
|
| 318 |
|
| 319 |
# ------------------------------------------------------------------
|
|
|
|
| 298 |
upload_image.change(
|
| 299 |
fn=update_preview,
|
| 300 |
inputs=[upload_image, upscale_radio, center_x, center_y],
|
| 301 |
+
outputs=[preview_with_box],
|
| 302 |
+
show_api=False
|
| 303 |
)
|
| 304 |
upscale_radio.change(
|
| 305 |
fn=update_preview,
|
| 306 |
inputs=[upload_image, upscale_radio, center_x, center_y],
|
| 307 |
+
outputs=[preview_with_box],
|
| 308 |
+
show_api=False
|
| 309 |
)
|
| 310 |
center_x.change(
|
| 311 |
fn=update_preview,
|
| 312 |
inputs=[upload_image, upscale_radio, center_x, center_y],
|
| 313 |
+
outputs=[preview_with_box],
|
| 314 |
+
show_api=False
|
| 315 |
)
|
| 316 |
center_y.change(
|
| 317 |
fn=update_preview,
|
| 318 |
inputs=[upload_image, upscale_radio, center_x, center_y],
|
| 319 |
+
outputs=[preview_with_box],
|
| 320 |
+
show_api=False
|
| 321 |
)
|
| 322 |
|
| 323 |
# ------------------------------------------------------------------
|