Spaces:
Sleeping
Sleeping
Commit ·
90b38dc
1
Parent(s): b175f72
Persist uploads under /data
Browse files- backend/api.py +1 -1
backend/api.py
CHANGED
|
@@ -37,7 +37,7 @@ app.add_middleware(
|
|
| 37 |
|
| 38 |
REPO_ROOT = Path(__file__).resolve().parents[1]
|
| 39 |
BACKEND_DIR = REPO_ROOT / "backend"
|
| 40 |
-
UPLOADS_DIR =
|
| 41 |
CONFIGS_DIR = UPLOADS_DIR / "configs"
|
| 42 |
|
| 43 |
|
|
|
|
| 37 |
|
| 38 |
REPO_ROOT = Path(__file__).resolve().parents[1]
|
| 39 |
BACKEND_DIR = REPO_ROOT / "backend"
|
| 40 |
+
UPLOADS_DIR = Path(os.environ.get("PDF_TRAINER_UPLOADS_DIR") or "/data/uploads")
|
| 41 |
CONFIGS_DIR = UPLOADS_DIR / "configs"
|
| 42 |
|
| 43 |
|