MishaD's picture
Upload 3 files
273d5d2
raw
history blame contribute delete
No virus
342 Bytes
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")