Spaces:
Sleeping
Sleeping
Update config.py
Browse files
config.py
CHANGED
|
@@ -4,9 +4,9 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
| 4 |
|
| 5 |
DATA_PATH = os.path.join(BASE_DIR, "data", "synthetic_transactions_samples_5000.csv")
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
MODEL_SAVE_DIR =
|
| 9 |
-
os.makedirs(MODEL_SAVE_DIR, exist_ok=True)
|
| 10 |
|
| 11 |
MODEL_PATH = os.path.join(MODEL_SAVE_DIR, "logreg_model.pkl")
|
| 12 |
TFIDF_PATH = os.path.join(MODEL_SAVE_DIR, "tfidf_vectorizer.pkl")
|
|
|
|
| 4 |
|
| 5 |
DATA_PATH = os.path.join(BASE_DIR, "data", "synthetic_transactions_samples_5000.csv")
|
| 6 |
|
| 7 |
+
# Use /tmp instead of /app to avoid permission errors
|
| 8 |
+
MODEL_SAVE_DIR = "/tmp/saved_models"
|
| 9 |
+
os.makedirs(MODEL_SAVE_DIR, exist_ok=True)
|
| 10 |
|
| 11 |
MODEL_PATH = os.path.join(MODEL_SAVE_DIR, "logreg_model.pkl")
|
| 12 |
TFIDF_PATH = os.path.join(MODEL_SAVE_DIR, "tfidf_vectorizer.pkl")
|