Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,6 @@ from paddleocr import PaddleOCR, PPStructureV3
|
|
| 11 |
from collections.abc import Mapping, Sequence
|
| 12 |
from dataclasses import is_dataclass, asdict
|
| 13 |
|
| 14 |
-
# Ensure the directory exists before PaddleX tries to use it
|
| 15 |
-
os.makedirs(os.environ['PADDLEX_HOME'], exist_ok=True)
|
| 16 |
-
|
| 17 |
# --- Configuration & Model Loading ---
|
| 18 |
|
| 19 |
class OcrInput(BaseModel):
|
|
|
|
| 11 |
from collections.abc import Mapping, Sequence
|
| 12 |
from dataclasses import is_dataclass, asdict
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
# --- Configuration & Model Loading ---
|
| 15 |
|
| 16 |
class OcrInput(BaseModel):
|