Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -331,11 +331,10 @@ def add_gallery(image, model_str, gallery):
|
|
331 |
|
332 |
def reset_gallery(gallery):
|
333 |
return add_gallery(None,"",[])
|
334 |
-
|
335 |
-
def load_gallery(gallery,id):
|
336 |
gallery = reset_gallery(gallery)
|
337 |
-
for
|
338 |
-
gallery=add_gallery(
|
339 |
return gallery
|
340 |
|
341 |
def fonc_start(id_session,id_module):
|
@@ -460,11 +459,7 @@ def make_me():
|
|
460 |
button_load_gallery=("Load Gallery")
|
461 |
button_load_gallery.click(fonc_load_gallery,[id_session,gallery],[])
|
462 |
|
463 |
-
|
464 |
-
gallery = reset_gallery(gallery)
|
465 |
-
for i in range(len(cache_image[f"{id_session}"])):
|
466 |
-
gallery=add_gallery(cache_image[f"{id_session}"][i],cache_image[f"{id_session}"][i]["model"],gallery)
|
467 |
-
return gallery
|
468 |
|
469 |
|
470 |
|
|
|
331 |
|
332 |
def reset_gallery(gallery):
|
333 |
return add_gallery(None,"",[])
|
334 |
+
def fonc_load_gallery(id_session,gallery):
|
|
|
335 |
gallery = reset_gallery(gallery)
|
336 |
+
for i in range(len(cache_image[f"{id_session}"])):
|
337 |
+
gallery=add_gallery(cache_image[f"{id_session}"][i],cache_image[f"{id_session}"][i]["model"],gallery)
|
338 |
return gallery
|
339 |
|
340 |
def fonc_start(id_session,id_module):
|
|
|
459 |
button_load_gallery=("Load Gallery")
|
460 |
button_load_gallery.click(fonc_load_gallery,[id_session,gallery],[])
|
461 |
|
462 |
+
|
|
|
|
|
|
|
|
|
463 |
|
464 |
|
465 |
|