SCANSKY commited on
Commit
8373f68
·
verified ·
1 Parent(s): ff77f42

Update handler.py

Browse files
Files changed (1) hide show
  1. 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 " 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"
 
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"