Spaces:
Sleeping
Sleeping
Zack
commited on
Commit
·
333b7cb
1
Parent(s):
61ff67d
adding another emotion model
Browse files
app.py
CHANGED
@@ -2,10 +2,7 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
#pipe = pipeline('sentiment-analysis')
|
5 |
-
pipe = pipeline(
|
6 |
-
task="text-classification",
|
7 |
-
model="SamLowe/roberta-base-go_emotions",
|
8 |
-
top_k=None)
|
9 |
|
10 |
text = st.text_area('enter your feelings here')
|
11 |
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
#pipe = pipeline('sentiment-analysis')
|
5 |
+
pipe = pipeline(task="text-classification", model="SamLowe/roberta-base-go_emotions", top_k=None)
|
|
|
|
|
|
|
6 |
|
7 |
text = st.text_area('enter your feelings here')
|
8 |
|