Spaces:
Sleeping
Sleeping
Commit
·
da27dba
1
Parent(s):
3ff502d
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ sum_it = gr.Interface.load('huggingface/SamuelMiller/lil_sumsum')
|
|
16 |
# Audio Functions:
|
17 |
def out(audio):
|
18 |
|
19 |
-
if
|
20 |
return "no audio"
|
21 |
|
22 |
else:
|
@@ -31,8 +31,8 @@ iface = gr.Interface(
|
|
31 |
fn=out,
|
32 |
title="Speech Audio to text (with corrected grammar)",
|
33 |
description="Let's Hear It!! This app transforms your speech (input) to text with corrected grammar after (output)!",
|
34 |
-
inputs=
|
35 |
-
outputs=
|
36 |
)
|
37 |
# From Original Code:
|
38 |
# gr.inputs.Audio(source="upload", type="filepath", label=None, optional=True),
|
|
|
16 |
# Audio Functions:
|
17 |
def out(audio):
|
18 |
|
19 |
+
if audio==None:
|
20 |
return "no audio"
|
21 |
|
22 |
else:
|
|
|
31 |
fn=out,
|
32 |
title="Speech Audio to text (with corrected grammar)",
|
33 |
description="Let's Hear It!! This app transforms your speech (input) to text with corrected grammar after (output)!",
|
34 |
+
inputs= gr.inputs.Audio(source="microphone", type="filepath", label=None, optional=True),
|
35 |
+
outputs= 'text' #,'text'
|
36 |
)
|
37 |
# From Original Code:
|
38 |
# gr.inputs.Audio(source="upload", type="filepath", label=None, optional=True),
|