Update app.py
Browse files
app.py
CHANGED
|
@@ -32,9 +32,9 @@ def process_adain_api(files, style_strength=1.0, dataset_size=100):
|
|
| 32 |
# Create zip file
|
| 33 |
zip_path = os.path.join(temp_dir, "style_transfer_results.zip")
|
| 34 |
with zipfile.ZipFile(zip_path, 'w') as zipf:
|
| 35 |
-
for file in os.listdir(
|
| 36 |
if file.lower().endswith(('.jpg', '.jpeg', '.png')):
|
| 37 |
-
zipf.write(os.path.join(
|
| 38 |
|
| 39 |
return zip_path, f"Style transfer completed with strength {style_strength}"
|
| 40 |
|
|
|
|
| 32 |
# Create zip file
|
| 33 |
zip_path = os.path.join(temp_dir, "style_transfer_results.zip")
|
| 34 |
with zipfile.ZipFile(zip_path, 'w') as zipf:
|
| 35 |
+
for file in os.listdir(output_dir):
|
| 36 |
if file.lower().endswith(('.jpg', '.jpeg', '.png')):
|
| 37 |
+
zipf.write(os.path.join(output_dir, file), file)
|
| 38 |
|
| 39 |
return zip_path, f"Style transfer completed with strength {style_strength}"
|
| 40 |
|