File size: 342 Bytes
273d5d2
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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")