accplan commited on
Commit
7b7a295
β€’
1 Parent(s): 5ba1e8a
Files changed (1) hide show
  1. app.py +1 -1
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()