Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,9 @@ st.title("Text-To-Sentiment-Analysis")
|
|
5 |
Text_arr=["Hello my name is Alex.","You gotta do way better than that.","That's super cool.","I don't care!","I Hate you!","It's whatever."]
|
6 |
pipe = Tpipe("sentiment-analysis")
|
7 |
print(Text_arr)
|
8 |
-
st.markdown("This is
|
|
|
|
|
9 |
if st.button("Press the button to test"):
|
10 |
for text in Text_arr:
|
11 |
labels=pipe(text)[0]["label"]
|
|
|
5 |
Text_arr=["Hello my name is Alex.","You gotta do way better than that.","That's super cool.","I don't care!","I Hate you!","It's whatever."]
|
6 |
pipe = Tpipe("sentiment-analysis")
|
7 |
print(Text_arr)
|
8 |
+
st.markdown("This is a binary classification sentiment analysis program where it determine the sentiment of a given phrase")
|
9 |
+
st.markdown("POSITIVE: Good")
|
10 |
+
st.markdown("NEGATIVE: Bad")
|
11 |
if st.button("Press the button to test"):
|
12 |
for text in Text_arr:
|
13 |
labels=pipe(text)[0]["label"]
|