Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,8 +32,7 @@ def convert_avif_to_png(avif_files):
|
|
| 32 |
|
| 33 |
def zip_files(file_paths):
|
| 34 |
if not file_paths:
|
| 35 |
-
gr.Error("No files to download. Please upload and convert AVIF files first.")
|
| 36 |
-
return
|
| 37 |
zip_path = "/tmp/converted_images.zip"
|
| 38 |
with zipfile.ZipFile(zip_path, 'w') as zipf:
|
| 39 |
for file_path in file_paths:
|
|
|
|
| 32 |
|
| 33 |
def zip_files(file_paths):
|
| 34 |
if not file_paths:
|
| 35 |
+
raise gr.Error("No files to download. Please upload and convert AVIF files first.")
|
|
|
|
| 36 |
zip_path = "/tmp/converted_images.zip"
|
| 37 |
with zipfile.ZipFile(zip_path, 'w') as zipf:
|
| 38 |
for file_path in file_paths:
|