Emotions
Browse files
app.py
CHANGED
|
@@ -8,4 +8,6 @@ pipe = pipeline(task="text-classification", model=model_name)
|
|
| 8 |
user_text = st.text_area("Explain your feelings here")
|
| 9 |
|
| 10 |
if user_text:
|
| 11 |
-
|
|
|
|
|
|
|
|
|
| 8 |
user_text = st.text_area("Explain your feelings here")
|
| 9 |
|
| 10 |
if user_text:
|
| 11 |
+
emotion = pipe(user_text)
|
| 12 |
+
st.markdown("You are feeling like ")
|
| 13 |
+
st.json(emotion)
|