JoshuaZywoo commited on
Commit
eb71061
·
verified ·
1 Parent(s): 0ebba57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,5 +1,10 @@
1
  import streamlit as st
2
  from transformers import pipeline
 
 
 
 
 
3
 
4
  # Load models
5
  emotion_classifier = pipeline("text-classification", model="shengqizhao0124/emotion_trainer", return_all_scores=True)
 
1
  import streamlit as st
2
  from transformers import pipeline
3
+ import os
4
+ from huggingface_hub import login
5
+
6
+ login(os.environ["HF_TOKEN"])
7
+
8
 
9
  # Load models
10
  emotion_classifier = pipeline("text-classification", model="shengqizhao0124/emotion_trainer", return_all_scores=True)