Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,10 @@ import streamlit as st #Web App
|
|
4 |
#title
|
5 |
st.title("Text Sentiment Analysis")
|
6 |
|
|
|
|
|
7 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
8 |
-
data = [
|
9 |
-
|
|
|
|
|
|
4 |
#title
|
5 |
st.title("Text Sentiment Analysis")
|
6 |
|
7 |
+
text = st.text_input('Input text:', 'I love CS482 course!')
|
8 |
+
|
9 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
10 |
+
data = [text]
|
11 |
+
|
12 |
+
if st.button('Submit'):
|
13 |
+
st.write(sentiment_pipeline(data))
|