Spaces:
Runtime error
Runtime error
| 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) | |