tidalove commited on
Commit
d69b2fc
·
verified ·
1 Parent(s): 361f901

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(result_path):
36
  if file.lower().endswith(('.jpg', '.jpeg', '.png')):
37
- zipf.write(os.path.join(result_path, file), file)
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