AI Update
Browse files
app.py
CHANGED
|
@@ -1,3 +1,8 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from transformers import pipeline
|
| 3 |
|
| 4 |
+
model_name = "SamLowe/roberta-base-go_emotions"
|
| 5 |
+
|
| 6 |
+
pipe = pipeline(task="text-classification", model=model_name)
|
| 7 |
+
|
| 8 |
+
user_text = st.text_area("Explain your feelings")
|