Update app.py
Browse files
app.py
CHANGED
|
@@ -82,19 +82,19 @@ def main():
|
|
| 82 |
st.json(entity_result)
|
| 83 |
|
| 84 |
# Sentiment Analysis
|
| 85 |
-
|
| 86 |
st.subheader("Analyse Your Text")
|
| 87 |
if st.button("Analyze"):
|
| 88 |
blob = TextBlob(message)
|
| 89 |
result_sentiment = blob.sentiment
|
| 90 |
st.success(result_sentiment)
|
| 91 |
#Text Corrections
|
| 92 |
-
|
| 93 |
st.subheader("Correct Your Text")
|
| 94 |
if st.button("Spell Corrections"):
|
| 95 |
st.text("Using TextBlob ..")
|
| 96 |
st.success(TextBlob(message).correct())
|
| 97 |
-
|
| 98 |
st.subheader("Generate Text")
|
| 99 |
if st.button("Generate"):
|
| 100 |
tokenizer, model = load_models()
|
|
|
|
| 82 |
st.json(entity_result)
|
| 83 |
|
| 84 |
# Sentiment Analysis
|
| 85 |
+
if st.checkbox("Show Sentiment Analysis"):
|
| 86 |
st.subheader("Analyse Your Text")
|
| 87 |
if st.button("Analyze"):
|
| 88 |
blob = TextBlob(message)
|
| 89 |
result_sentiment = blob.sentiment
|
| 90 |
st.success(result_sentiment)
|
| 91 |
#Text Corrections
|
| 92 |
+
if st.checkbox("Spell Corrections"):
|
| 93 |
st.subheader("Correct Your Text")
|
| 94 |
if st.button("Spell Corrections"):
|
| 95 |
st.text("Using TextBlob ..")
|
| 96 |
st.success(TextBlob(message).correct())
|
| 97 |
+
if st.checkbox("Text Generation"):
|
| 98 |
st.subheader("Generate Text")
|
| 99 |
if st.button("Generate"):
|
| 100 |
tokenizer, model = load_models()
|