Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,11 @@ from backend import predict
|
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
|
| 5 |
-
st.title
|
| 6 |
-
|
|
|
|
| 7 |
|
| 8 |
if(text):
|
| 9 |
prediction= predict(text)
|
|
|
|
| 10 |
st.json({"sentiment": prediction})
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
|
| 5 |
+
st.title("Classify Sentiment")
|
| 6 |
+
st.subheader("Enter your text")
|
| 7 |
+
text= st.text_area()
|
| 8 |
|
| 9 |
if(text):
|
| 10 |
prediction= predict(text)
|
| 11 |
+
st.header(prediction)
|
| 12 |
st.json({"sentiment": prediction})
|