Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files32 unmodified lines3334353637383932 unmodified linesintent_model.to(device).eval()# Load Emotion Modelemotions_model_path = "./saved_model"emotions_model = DistilBertForSequenceClassification.from_pretrained(emotions_model_path)emotions_tokenizer = DistilBertTokenizer.from_pretrained(emotions_model_path)emotions_model.to(device).eval()32 unmodified lines33343536373839404132 unmodified linesintent_model.to(device).eval()# Load Emotion Modelemotions_model_path = os.path.join(os.path.dirname(__file__), "saved_model")emotions_model = DistilBertForSequenceClassification.from_pretrained(emotions_model_path)emotions_tokenizer = DistilBertTokenizer.from_pretrained(emotions_model_path)emotions_model.to(device).eval()
src/streamlit_app.py+3-1