Spaces:
Running
Running
fix
Browse files
app.py
CHANGED
|
@@ -316,14 +316,14 @@ with gr.Blocks() as demo:
|
|
| 316 |
fn=None,
|
| 317 |
inputs=[image_bef],
|
| 318 |
outputs=[],
|
| 319 |
-
_js="(image_bef) => { initializeEditorBefore(); importBackgroundBefore(
|
| 320 |
)
|
| 321 |
|
| 322 |
image_aft.change(
|
| 323 |
fn=None,
|
| 324 |
inputs=[image_aft],
|
| 325 |
outputs=[],
|
| 326 |
-
_js="(image_aft) => { initializeEditorAfter(); importBackgroundAfter(
|
| 327 |
)
|
| 328 |
|
| 329 |
|
|
|
|
| 316 |
fn=None,
|
| 317 |
inputs=[image_bef],
|
| 318 |
outputs=[],
|
| 319 |
+
_js="(image_bef) => { initializeEditorBefore(); importBackgroundBefore(image_bef); return []; }",
|
| 320 |
)
|
| 321 |
|
| 322 |
image_aft.change(
|
| 323 |
fn=None,
|
| 324 |
inputs=[image_aft],
|
| 325 |
outputs=[],
|
| 326 |
+
_js="(image_aft) => { initializeEditorAfter(); importBackgroundAfter(image_aft); return []; }",
|
| 327 |
)
|
| 328 |
|
| 329 |
|