spookyspaghetti commited on
Commit
51fb0b7
1 Parent(s): 5ce0024

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -18,4 +18,12 @@ def transcribe(audio):
18
  correct = happy_tt.generate_text("grammar: " + text, args=args)
19
  return text, correct.text
20
 
21
- gr.Interface(fn=transcribe).launch()
 
 
 
 
 
 
 
 
 
18
  correct = happy_tt.generate_text("grammar: " + text, args=args)
19
  return text, correct.text
20
 
21
+ gr.Interface(
22
+ fn=transcribe,
23
+ inputs=[
24
+ gr.components.Audio(type="filepath"),
25
+ ],
26
+ outputs=[
27
+ "textbox",
28
+ "textbox"
29
+ ]).launch()