Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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",
|