neha-ai-playground commited on
Commit
07f7337
·
1 Parent(s): a30c4ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -3,6 +3,7 @@ from transformers import pipeline
3
  pipe = pipeline('sentiment-analysis')
4
  query = st.text_area('enter some text - It will return the sentiment of the entered text Negative/Positive :')
5
  button = st.button('Submit', key='button')
 
6
  if button:
7
  out = pipe(query)
8
  if query:
 
3
  pipe = pipeline('sentiment-analysis')
4
  query = st.text_area('enter some text - It will return the sentiment of the entered text Negative/Positive :')
5
  button = st.button('Submit', key='button')
6
+ out = 'sentiment result'
7
  if button:
8
  out = pipe(query)
9
  if query: