| import streamlit as st | |
| from model import classify_text | |
| st.markdown("### Sentiment classification (negative vs. positive)") | |
| title = st.text_area("Your sentiment for classification", "I would not use it") | |
| if st.button("Classify!"): | |
| prob = float(classify_text(title)) | |
| st.markdown(f"**Model**: {round(prob, 5)}% of being positive") | |