Spaces:
Running
Running
Upload app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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
|