Update app.py
Browse files
app.py
CHANGED
@@ -70,9 +70,15 @@ def main():
|
|
70 |
NER,Sentiment, Spell Corrections and Summarization
|
71 |
""")
|
72 |
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
# Entity Extraction
|
75 |
-
|
76 |
st.subheader("Analyze Your Text")
|
77 |
|
78 |
message = st.text_area("Enter your Text","Typing Here ..")
|
@@ -83,18 +89,11 @@ def main():
|
|
83 |
# Sentiment Analysis
|
84 |
elif st.checkbox("Show Sentiment Analysis"):
|
85 |
st.subheader("Analyse Your Text")
|
86 |
-
message = st.text_area("Enter Text plz
|
87 |
if st.button("Analyze"):
|
88 |
blob = TextBlob(message)
|
89 |
result_sentiment = blob.sentiment
|
90 |
st.success(result_sentiment)
|
91 |
-
#Text Corrections
|
92 |
-
elif st.checkbox("Spell Corrections"):
|
93 |
-
st.subheader("Correct Your Text")
|
94 |
-
message = st.text_area("Enter the Text","Type please ..")
|
95 |
-
if st.button("Spell Corrections"):
|
96 |
-
st.text("Using TextBlob ..")
|
97 |
-
st.success(TextBlob(message).correct())
|
98 |
def change_photo_state():
|
99 |
st.session_state["photo"]="done"
|
100 |
st.subheader("Summary section, feed your image!")
|
|
|
70 |
NER,Sentiment, Spell Corrections and Summarization
|
71 |
""")
|
72 |
|
73 |
+
#Text Corrections
|
74 |
+
if st.checkbox("Spell Corrections"):
|
75 |
+
st.subheader("Correct Your Text")
|
76 |
+
message = st.text_area("Enter the Text","Type please ..")
|
77 |
+
if st.button("Spell Corrections"):
|
78 |
+
st.text("Using TextBlob ..")
|
79 |
+
st.success(TextBlob(message).correct())
|
80 |
# Entity Extraction
|
81 |
+
elif st.checkbox("Show Named Entities"):
|
82 |
st.subheader("Analyze Your Text")
|
83 |
|
84 |
message = st.text_area("Enter your Text","Typing Here ..")
|
|
|
89 |
# Sentiment Analysis
|
90 |
elif st.checkbox("Show Sentiment Analysis"):
|
91 |
st.subheader("Analyse Your Text")
|
92 |
+
message = st.text_area("Enter Text plz, Type Here ...")
|
93 |
if st.button("Analyze"):
|
94 |
blob = TextBlob(message)
|
95 |
result_sentiment = blob.sentiment
|
96 |
st.success(result_sentiment)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
def change_photo_state():
|
98 |
st.session_state["photo"]="done"
|
99 |
st.subheader("Summary section, feed your image!")
|