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}")