Spaces:
Running
Running
fix
Browse files
app.py
CHANGED
@@ -276,17 +276,17 @@ with gr.Blocks() as demo:
|
|
276 |
examples_per_page=5
|
277 |
)
|
278 |
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
|
291 |
with gr.Column(scale=1):
|
292 |
# Output components
|
@@ -303,19 +303,19 @@ with gr.Blocks() as demo:
|
|
303 |
outputs=[prediction, selected_info_bef, selected_info_aft]
|
304 |
)
|
305 |
|
306 |
-
image_bef.change(
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
image_aft.change(
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
)
|
319 |
|
320 |
|
321 |
|
|
|
276 |
examples_per_page=5
|
277 |
)
|
278 |
|
279 |
+
image_bef.change(
|
280 |
+
fn=display_image,
|
281 |
+
inputs=[image_bef],
|
282 |
+
outputs=[image_display_with_grid_bef, selected_cells_bef]
|
283 |
+
)
|
284 |
+
|
285 |
+
image_aft.change(
|
286 |
+
fn=display_image,
|
287 |
+
inputs=[image_aft],
|
288 |
+
outputs=[image_display_with_grid_aft, selected_cells_aft]
|
289 |
+
)
|
290 |
|
291 |
with gr.Column(scale=1):
|
292 |
# Output components
|
|
|
303 |
outputs=[prediction, selected_info_bef, selected_info_aft]
|
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 |
|
321 |
|