Spaces:
Runtime error
Runtime error
File size: 402 Bytes
26455a4 0656c3e 21d7183 26455a4 21d7183 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
query = st.text_area("enter some text - It will return the sentiment of the entered text Negative/Positive :", height= 100, key= "query_text")
button = st.button("Submit", key="button")
if button:
out = pipe(text)
st.json(out)
if query:
out = pipe(text)
st.json(out) |