Spaces:
Sleeping
Sleeping
jkmaina
commited on
Commit
·
11362dd
1
Parent(s):
875b95b
Initial commit
Browse files
app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
st.title("Sentiment Analysis Demo")
|
| 4 |
+
text = st.text_input("Enter text")
|
| 5 |
+
|
| 6 |
+
if st.button("Analyze"):
|
| 7 |
+
sentiment = "Positive" if "good" in text.lower() else "Negative"
|
| 8 |
+
st.write(f"Sentiment: {sentiment}")
|