Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -15,7 +15,7 @@ import os
|
|
| 15 |
try:
|
| 16 |
label_encoder = joblib.load('/repository/label_encoder.pkl')
|
| 17 |
except Exception as e:
|
| 18 |
-
raise FileNotFoundError("Label encoder file not found: /repository/label_encoder.pkl in cwd "
|
| 19 |
|
| 20 |
# Load the model and tokenizer from Hugging Face
|
| 21 |
model_name = "SCANSKY/distilbertTourism-multilingual-sentiment"
|
|
|
|
| 15 |
try:
|
| 16 |
label_encoder = joblib.load('/repository/label_encoder.pkl')
|
| 17 |
except Exception as e:
|
| 18 |
+
raise FileNotFoundError("Label encoder file not found: /repository/label_encoder.pkl in cwd "+os.getcwd()) #Raise a file not found error.
|
| 19 |
|
| 20 |
# Load the model and tokenizer from Hugging Face
|
| 21 |
model_name = "SCANSKY/distilbertTourism-multilingual-sentiment"
|