Spaces:
Runtime error
Runtime error
neha-ai-playground
commited on
Commit
•
e545d03
1
Parent(s):
8857191
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
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)
|
|
|
1 |
import streamlit as st
|
2 |
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 :', 'I love you')
|
5 |
button = st.button('Submit', key='button')
|
6 |
if button:
|
7 |
out = pipe(query)
|