Spaces:
Runtime error
Runtime error
aar2dee2
commited on
Commit
·
f164ce2
1
Parent(s):
5a0dd0f
fix gradio interface
Browse files
app.py
CHANGED
@@ -121,5 +121,13 @@ def main(input_audio):
|
|
121 |
return output_audio
|
122 |
|
123 |
|
124 |
-
demo = gr.Interface(fn=main, inputs=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
demo.launch()
|
|
|
121 |
return output_audio
|
122 |
|
123 |
|
124 |
+
demo = gr.Interface(fn=main, inputs=gr.Audio(
|
125 |
+
source="microphone",
|
126 |
+
type="filepath",
|
127 |
+
interactive=True,
|
128 |
+
format="wav",
|
129 |
+
), outputs=gr.Audio(
|
130 |
+
autoplay=True,
|
131 |
+
format="wav",
|
132 |
+
))
|
133 |
demo.launch()
|