File size: 237 Bytes
ae35b7e 4e30f44 25d1110 13decbd 25d1110 13decbd 4e30f44 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from transformers import pipeline
import streamlit as st
pipe = pipeline('sentiment-analysis')
st.write(type(pipeline))
st.write(type(pipe))
input_text = st.text_input('Enter some text')
if input_text:
st.json(pipe(input_text)) |