Spaces:
Runtime error
Runtime error
File size: 251 Bytes
d84876f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import streamlit as st
from transformers import pipeline
print(111)
pipe = pipeline("sentiment-analysis")
print(222)
text = st.text_area("enter some text")
print(333)
if text:
print(444)
out = pipe(text)
print(555)
st.json(out)
print(666)
|