leslyarun commited on
Commit
67bde9a
1 Parent(s): 31d79eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def check_grammar(sentence):
6
  args = TTSettings(num_beams=5, min_length=1)
7
  # Add the prefix "grammar: " before each input
8
  result = happy_tt.generate_text("grammar: " + sentence, args=args)
9
- return result
10
 
11
  demo = gr.Interface(check_grammar, inputs=['text'],
12
  outputs="text",
 
6
  args = TTSettings(num_beams=5, min_length=1)
7
  # Add the prefix "grammar: " before each input
8
  result = happy_tt.generate_text("grammar: " + sentence, args=args)
9
+ return result.text
10
 
11
  demo = gr.Interface(check_grammar, inputs=['text'],
12
  outputs="text",