DemiPoto commited on
Commit
5127b7b
·
verified ·
1 Parent(s): 1b8076f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
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 c in cache_image[f"{id}"]:
338
- gallery=add_gallery(c[0],c[1],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
- def fonc_load_gallery(id_session,gallery):
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