Dimrror commited on
Commit
057a9dd
·
verified ·
1 Parent(s): 0f2cd78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -10,7 +10,9 @@ from contextlib import asynccontextmanager
10
  # CONFIG
11
  # -------------------------
12
  # Use official BERT GoEmotions from Hugging Face Hub
13
- MODEL_NAME = "google/goemotions"
 
 
14
 
15
  # -------------------------
16
  # FastAPI lifespan (startup/shutdown)
 
10
  # CONFIG
11
  # -------------------------
12
  # Use official BERT GoEmotions from Hugging Face Hub
13
+ MODEL_NAME = "justin871030/bert-base-uncased-goemotions-original-finetuned"
14
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
15
+ model = AutoModelForSequenceClassification.from_pretrained(MODEL_NAME)
16
 
17
  # -------------------------
18
  # FastAPI lifespan (startup/shutdown)