Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
on1onmangoes
/
mango1
like
1
Runtime error
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
51b7da3
mango1
/
app.py
on1onmangoes
Update app.py
51b7da3
about 2 years ago
raw
Copy download link
history
blame
Safe
222 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
from
pydub
import
AudioSegment, silence
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'enter some text'
)
if
text:
out = pipe(text)
st.json(out)