Spaces:
Runtime error
Runtime error
Commit
·
51fb0b7
1
Parent(s):
5ce0024
Update app.py
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|