Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,10 +32,10 @@ def recognize_speech(input_source, audio_file):
|
|
| 32 |
iface = gr.Interface(
|
| 33 |
fn=recognize_speech,
|
| 34 |
inputs=[
|
| 35 |
-
gr.
|
| 36 |
-
gr.
|
| 37 |
],
|
| 38 |
-
outputs=
|
| 39 |
)
|
| 40 |
|
| 41 |
iface.launch()
|
|
|
|
| 32 |
iface = gr.Interface(
|
| 33 |
fn=recognize_speech,
|
| 34 |
inputs=[
|
| 35 |
+
gr.Radio(choices=["Microphone", "Audio File"], label="Input Source", value="Microphone"),
|
| 36 |
+
gr.File(label="Upload Audio File", type="file")
|
| 37 |
],
|
| 38 |
+
outputs=gr.Textbox()
|
| 39 |
)
|
| 40 |
|
| 41 |
iface.launch()
|