hariharan220 commited on
Commit
8d9fb21
·
verified ·
1 Parent(s): 7b15527

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,8 +10,8 @@ if not HF_TOKEN:
10
 
11
  # ✅ Load trained FinBERT model
12
  MODEL_PATH = "hariharan220/finbert-stock-sentiment"
13
- model = BertForSequenceClassification.from_pretrained(MODEL_PATH,use_auth_token=HF_API_KEY)
14
- tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH,use_auth_token=HF_API_KEY)
15
 
16
  # ✅ Define sentiment labels
17
  labels = ["Negative", "Neutral", "Positive"]
 
10
 
11
  # ✅ Load trained FinBERT model
12
  MODEL_PATH = "hariharan220/finbert-stock-sentiment"
13
+ model = BertForSequenceClassification.from_pretrained(MODEL_PATH)
14
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
15
 
16
  # ✅ Define sentiment labels
17
  labels = ["Negative", "Neutral", "Positive"]