Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -323,7 +323,7 @@ def reset_cache_image_actu(id,cache_image_actu=cache_image_actu):
|
|
| 323 |
cache_image_actu[f"{id}"].clear()
|
| 324 |
return
|
| 325 |
def reset_cache_image_all_sessions(cache_image=cache_image):
|
| 326 |
-
for key, listT in cache_image:
|
| 327 |
listT.clear()
|
| 328 |
return
|
| 329 |
|
|
@@ -338,7 +338,7 @@ def set_session(id):
|
|
| 338 |
def print_info_sessions():
|
| 339 |
lenTot=0
|
| 340 |
print("numbre of sessions : "+str(len(cache_image)))
|
| 341 |
-
for key, listT in cache_image:
|
| 342 |
print(key+str(len(listT)))
|
| 343 |
lenTot+=len(listT)
|
| 344 |
print("images total = "+str(lenTot))
|
|
|
|
| 323 |
cache_image_actu[f"{id}"].clear()
|
| 324 |
return
|
| 325 |
def reset_cache_image_all_sessions(cache_image=cache_image):
|
| 326 |
+
for key, listT in cache_image.items():
|
| 327 |
listT.clear()
|
| 328 |
return
|
| 329 |
|
|
|
|
| 338 |
def print_info_sessions():
|
| 339 |
lenTot=0
|
| 340 |
print("numbre of sessions : "+str(len(cache_image)))
|
| 341 |
+
for key, listT in cache_image.items():
|
| 342 |
print(key+str(len(listT)))
|
| 343 |
lenTot+=len(listT)
|
| 344 |
print("images total = "+str(lenTot))
|