JasmineQiuqiu commited on
Commit
18ad580
1 Parent(s): eb0de62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -4,19 +4,16 @@ from transformers import pipeline
4
  # load the pipeline
5
  sentiment_analysis = pipeline("sentiment-analysis")
6
 
7
- # Title of the application
8
- st.title('Welcome to my Streamlit App!')
9
 
10
  # Display text
11
- st.write("This is a simple Streamlit application.")
12
 
13
- # Display emoji
14
- st.write("Here's an emoji for you: :smiley:")
15
 
16
- # A placeholder for additional content
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: