Spaces:
Running
Running
JasmineQiuqiu
commited on
Commit
•
18ad580
1
Parent(s):
eb0de62
Update app.py
Browse files
app.py
CHANGED
@@ -4,19 +4,16 @@ from transformers import pipeline
|
|
4 |
# load the pipeline
|
5 |
sentiment_analysis = pipeline("sentiment-analysis")
|
6 |
|
7 |
-
#
|
8 |
-
st.title('
|
9 |
|
10 |
# Display text
|
11 |
-
st.write("
|
12 |
|
13 |
-
#
|
14 |
-
st.write("
|
15 |
|
16 |
-
|
17 |
-
st.write("Use the endpoint /predict to get sentiment analysis results.")
|
18 |
-
|
19 |
-
user_input = st.text_input('Enter something:')
|
20 |
|
21 |
if st.button('Submit'):
|
22 |
if user_input:
|
|
|
4 |
# load the pipeline
|
5 |
sentiment_analysis = pipeline("sentiment-analysis")
|
6 |
|
7 |
+
# title
|
8 |
+
st.title('Analyze Sentiment of Text!')
|
9 |
|
10 |
# Display text
|
11 |
+
st.write("You will get a sentiment analysis after you enter something.")
|
12 |
|
13 |
+
# show an emoji
|
14 |
+
st.write("Let's try it: :smiley:")
|
15 |
|
16 |
+
user_input = st.text_input('Enter something below:')
|
|
|
|
|
|
|
17 |
|
18 |
if st.button('Submit'):
|
19 |
if user_input:
|