Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -65,9 +65,13 @@ def zip_ims(g):
|
|
65 |
from uuid import uuid1
|
66 |
if g is None:
|
67 |
return None
|
|
|
68 |
print(g[0])
|
69 |
print(g[0][0])
|
70 |
print(g[0][1])
|
|
|
|
|
|
|
71 |
l = list(map(lambda x: x["name"], g))
|
72 |
if not l:
|
73 |
return None
|
|
|
65 |
from uuid import uuid1
|
66 |
if g is None:
|
67 |
return None
|
68 |
+
'''
|
69 |
print(g[0])
|
70 |
print(g[0][0])
|
71 |
print(g[0][1])
|
72 |
+
'''
|
73 |
+
g = json.loads(g.model_dump_json())
|
74 |
+
g = list(map(lambda x: {"name": x["image"]["path"]}, g))
|
75 |
l = list(map(lambda x: x["name"], g))
|
76 |
if not l:
|
77 |
return None
|