Update app.py
Browse files
app.py
CHANGED
|
@@ -12,13 +12,13 @@ LOCAL_DIR = os.path.join(os.getcwd(), "models", "qwen3_sentiment_tinystories")
|
|
| 12 |
weights_path = hf_hub_download(
|
| 13 |
repo_id=MODEL_REPO,
|
| 14 |
filename=FILENAME,
|
| 15 |
-
local_dir="
|
| 16 |
local_dir_use_symlinks=None # not needed anymore; safe to omit
|
| 17 |
)
|
| 18 |
|
| 19 |
|
| 20 |
# Load classifier
|
| 21 |
-
classifier = SentimentClassifier(model_dir="
|
| 22 |
weights_path=weights_path)
|
| 23 |
|
| 24 |
def predict_sentiment(text):
|
|
|
|
| 12 |
weights_path = hf_hub_download(
|
| 13 |
repo_id=MODEL_REPO,
|
| 14 |
filename=FILENAME,
|
| 15 |
+
local_dir="qwen3_sentiment_tinystories", # any folder in runtime
|
| 16 |
local_dir_use_symlinks=None # not needed anymore; safe to omit
|
| 17 |
)
|
| 18 |
|
| 19 |
|
| 20 |
# Load classifier
|
| 21 |
+
classifier = SentimentClassifier(model_dir="qwen3_sentiment_tinystories",
|
| 22 |
weights_path=weights_path)
|
| 23 |
|
| 24 |
def predict_sentiment(text):
|