Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
ImpactInsights
/
Chatbot
like
0
Sleeping
App
Files
Files
Community
e908e5b
Chatbot
/
app.py
ImpactInsights
Update app.py
5d25df8
verified
4 months ago
raw
Copy download link
history
blame
Safe
200 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
import
torch
pipe = pipeline(
"sentiment-analysis"
)
text = st.text_area(
"enter your text here"
)
if
text:
out = pipe(text)
st.json(out)