Spaces:
Runtime error
Runtime error
Commit
·
07f7337
1
Parent(s):
a30c4ee
Update app.py
Browse files
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:
|