Spaces:
Sleeping
Sleeping
Commit ·
e2047f6
1
Parent(s): fdc91d2
Update model_loader.py
Browse files
src/twitter_sentiment/model_loader.py
CHANGED
|
@@ -2,7 +2,7 @@ import os
|
|
| 2 |
import joblib
|
| 3 |
import urllib.request
|
| 4 |
|
| 5 |
-
#
|
| 6 |
MODEL_URL = "https://raw.githubusercontent.com/Youranalyst-coder/twitter-sentiment-analysis/main/artifacts/sentiment_pipeline.joblib"
|
| 7 |
MODEL_PATH = "artifacts/sentiment_pipeline.joblib"
|
| 8 |
|
|
|
|
| 2 |
import joblib
|
| 3 |
import urllib.request
|
| 4 |
|
| 5 |
+
# ✅ Direct raw GitHub link (must return a real .joblib file)
|
| 6 |
MODEL_URL = "https://raw.githubusercontent.com/Youranalyst-coder/twitter-sentiment-analysis/main/artifacts/sentiment_pipeline.joblib"
|
| 7 |
MODEL_PATH = "artifacts/sentiment_pipeline.joblib"
|
| 8 |
|