Spaces:
Runtime error
Runtime error
accplan commited on
Commit Β·
7b7a295
1
Parent(s): 5ba1e8a
test
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ args = TTSettings(num_beams=5, min_length=1)
|
|
| 6 |
|
| 7 |
def fix(bad):
|
| 8 |
result = happy_tt.generate_text("grammar: " + bad, args=args)
|
| 9 |
-
return result
|
| 10 |
|
| 11 |
iface = gr.Interface(fn=fix, inputs="text", outputs="text")
|
| 12 |
iface.launch()
|
|
|
|
| 6 |
|
| 7 |
def fix(bad):
|
| 8 |
result = happy_tt.generate_text("grammar: " + bad, args=args)
|
| 9 |
+
return result.text
|
| 10 |
|
| 11 |
iface = gr.Interface(fn=fix, inputs="text", outputs="text")
|
| 12 |
iface.launch()
|