Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -166,8 +166,8 @@ def replace_with_synonyms(text):
|
|
| 166 |
|
| 167 |
# Main function for paraphrasing and grammar correction
|
| 168 |
def paraphrase_and_correct(text):
|
| 169 |
-
paraphrased_text = replace_with_synonyms(
|
| 170 |
-
cleaned_text = remove_redundant_words(
|
| 171 |
paraphrased_text = capitalize_sentences_and_nouns(cleaned_text)
|
| 172 |
paraphrased_text = force_first_letter_capital(paraphrased_text)
|
| 173 |
paraphrased_text = correct_article_errors(paraphrased_text)
|
|
|
|
| 166 |
|
| 167 |
# Main function for paraphrasing and grammar correction
|
| 168 |
def paraphrase_and_correct(text):
|
| 169 |
+
paraphrased_text = replace_with_synonyms(text) # Add synonym replacement here
|
| 170 |
+
cleaned_text = remove_redundant_words(paraphrased_text)
|
| 171 |
paraphrased_text = capitalize_sentences_and_nouns(cleaned_text)
|
| 172 |
paraphrased_text = force_first_letter_capital(paraphrased_text)
|
| 173 |
paraphrased_text = correct_article_errors(paraphrased_text)
|