sashtech commited on
Commit
13a208e
·
verified ·
1 Parent(s): 6d37a0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -125,7 +125,7 @@ def paraphrase_with_spacy_nltk(text):
125
 
126
  # Function to correct grammar using Gramformer
127
  def correct_grammar(text):
128
- corrected_sentences = gf.correct(text, max_candidates=1)
129
  return corrected_sentences[0] if corrected_sentences else text
130
 
131
  # Combined function: Paraphrase -> Tense Check -> Capitalization -> Grammar Correction
 
125
 
126
  # Function to correct grammar using Gramformer
127
  def correct_grammar(text):
128
+ corrected_sentences = gf.correct(text)
129
  return corrected_sentences[0] if corrected_sentences else text
130
 
131
  # Combined function: Paraphrase -> Tense Check -> Capitalization -> Grammar Correction