Update app.py
Browse files
app.py
CHANGED
@@ -99,13 +99,13 @@ demo = gr.Blocks()
|
|
99 |
with demo:
|
100 |
mic_transcribe = gr.Interface(
|
101 |
fn=gradio_mic_interface,
|
102 |
-
inputs=gr.Audio(type="
|
103 |
outputs=gr.Textbox(label="Prediction")
|
104 |
)
|
105 |
|
106 |
file_transcribe = gr.Interface(
|
107 |
fn=gradio_file_interface,
|
108 |
-
inputs=gr.Audio(type="
|
109 |
outputs=gr.Textbox(label="Prediction")
|
110 |
)
|
111 |
|
@@ -114,3 +114,4 @@ with demo:
|
|
114 |
|
115 |
# Launch the demo with debugging enabled to catch any potential errors early on
|
116 |
demo.launch(debug=True)
|
|
|
|
99 |
with demo:
|
100 |
mic_transcribe = gr.Interface(
|
101 |
fn=gradio_mic_interface,
|
102 |
+
inputs=gr.Audio(source="microphone", type="numpy"), # changed here
|
103 |
outputs=gr.Textbox(label="Prediction")
|
104 |
)
|
105 |
|
106 |
file_transcribe = gr.Interface(
|
107 |
fn=gradio_file_interface,
|
108 |
+
inputs=gr.Audio(source="upload", type="numpy"), # and here
|
109 |
outputs=gr.Textbox(label="Prediction")
|
110 |
)
|
111 |
|
|
|
114 |
|
115 |
# Launch the demo with debugging enabled to catch any potential errors early on
|
116 |
demo.launch(debug=True)
|
117 |
+
|