File size: 230 Bytes
11362dd
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import streamlit as st

st.title("Sentiment Analysis Demo")
text = st.text_input("Enter text")

if st.button("Analyze"):
    sentiment = "Positive" if "good" in text.lower() else "Negative"
    st.write(f"Sentiment: {sentiment}")