SohomToom commited on
Commit
8babd96
·
verified ·
1 Parent(s): c778e32

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -146,7 +146,9 @@ def process_folder(input_files):
146
  remove_text_dynamic_fill(file.name, output_path)
147
 
148
  zip_path = "/tmp/cleaned_output.zip"
149
- zip_folder(output_path, zip_path)
 
 
150
  return zip_path
151
 
152
  import zipfile
 
146
  remove_text_dynamic_fill(file.name, output_path)
147
 
148
  zip_path = "/tmp/cleaned_output.zip"
149
+ output_dir = os.path.join(tempfile.gettempdir(), "cleaned_output")
150
+ os.makedirs(output_dir, exist_ok=True)
151
+ zip_folder(output_dir, zip_path)
152
  return zip_path
153
 
154
  import zipfile