Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,7 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
from transformers import BertTokenizer
|
4 |
|
5 |
-
|
6 |
-
text = st.text_area('Text to analyze:')
|
7 |
classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
|
8 |
|
9 |
if text:
|
|
|
2 |
from transformers import pipeline
|
3 |
from transformers import BertTokenizer
|
4 |
|
5 |
+
text = st.text_area('Sentiment Analysis Model - SacHacks2023 | Text to analyze:')
|
|
|
6 |
classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
|
7 |
|
8 |
if text:
|