Update app.py
Browse files
app.py
CHANGED
|
@@ -355,8 +355,8 @@ def run_single_pdf_preprocessing(pdf_path: str) -> Tuple[int, int, int, str, flo
|
|
| 355 |
|
| 356 |
|
| 357 |
if os.path.exists(OUTPUT_DIR):
|
| 358 |
-
|
| 359 |
-
|
| 360 |
|
| 361 |
|
| 362 |
# 1. Validation and Model Loading
|
|
|
|
| 355 |
|
| 356 |
|
| 357 |
if os.path.exists(OUTPUT_DIR):
|
| 358 |
+
shutil.rmtree(OUTPUT_DIR)
|
| 359 |
+
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
| 360 |
|
| 361 |
|
| 362 |
# 1. Validation and Model Loading
|