Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,6 @@ from typing import List
|
|
| 10 |
import re
|
| 11 |
|
| 12 |
app = FastAPI()
|
| 13 |
-
|
| 14 |
-
# Ensure Tesseract is installed and set the correct path if necessary
|
| 15 |
-
# tess.pytesseract.tesseract_cmd = r'/path/to/tesseract'
|
| 16 |
-
|
| 17 |
-
# Create an uploads directory for text files
|
| 18 |
UPLOADS_DIR = "uploads"
|
| 19 |
if not os.path.exists(UPLOADS_DIR):
|
| 20 |
os.makedirs(UPLOADS_DIR)
|
|
|
|
| 10 |
import re
|
| 11 |
|
| 12 |
app = FastAPI()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
UPLOADS_DIR = "uploads"
|
| 14 |
if not os.path.exists(UPLOADS_DIR):
|
| 15 |
os.makedirs(UPLOADS_DIR)
|