sashtech commited on
Commit
d655287
·
verified ·
1 Parent(s): 9690c77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(paraphrased_text) # Add synonym replacement here
170
- cleaned_text = remove_redundant_words(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)
 
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)