resume / app.py
ruthvik7382's picture
Update app.py
1e0e32c verified
raw
history blame
188 Bytes
import streamlit as slt
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = slt.text_area('Give me some text')
if text:
out = pipe(text)
slt.json(out)