Spaces:
Running
Running
fix
Browse files
app.py
CHANGED
@@ -304,17 +304,17 @@ with gr.Blocks() as demo:
|
|
304 |
)
|
305 |
|
306 |
image_bef.change(
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
|
313 |
image_aft.change(
|
314 |
fn=None,
|
315 |
inputs=[image_aft],
|
316 |
outputs=[],
|
317 |
-
|
318 |
)
|
319 |
|
320 |
|
|
|
304 |
)
|
305 |
|
306 |
image_bef.change(
|
307 |
+
fn=None,
|
308 |
+
inputs=[image_bef],
|
309 |
+
outputs=[],
|
310 |
+
_js="(image) => { initializeEditor(); importBackground(image); return []; }",
|
311 |
+
)
|
312 |
|
313 |
image_aft.change(
|
314 |
fn=None,
|
315 |
inputs=[image_aft],
|
316 |
outputs=[],
|
317 |
+
_js="(image) => { initializeEditor(); importBackground(image); return []; }",
|
318 |
)
|
319 |
|
320 |
|