Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,6 +106,8 @@ def zip_ims(g):
|
|
106 |
if g is None:
|
107 |
return None
|
108 |
l = list(map(lambda x: x["name"], g))
|
|
|
|
|
109 |
zip_file_name ="tmp.zip"
|
110 |
with ZipFile(zip_file_name ,"w") as zipObj:
|
111 |
for ele in l:
|
|
|
106 |
if g is None:
|
107 |
return None
|
108 |
l = list(map(lambda x: x["name"], g))
|
109 |
+
if not l:
|
110 |
+
return None
|
111 |
zip_file_name ="tmp.zip"
|
112 |
with ZipFile(zip_file_name ,"w") as zipObj:
|
113 |
for ele in l:
|