Spaces:
Sleeping
Sleeping
Commit
·
1503067
1
Parent(s):
0af87d2
accepting input from upload or mic
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ being passed into the model. The output is the text transcription of the audio.
|
|
41 |
gr.Interface(
|
42 |
fn=predict,
|
43 |
inputs=[
|
44 |
-
gr.Audio(label="Upload Speech", source="upload", type="
|
45 |
-
gr.Audio(label="Record Speech", source="microphone", type="
|
46 |
],
|
47 |
outputs=[
|
48 |
gr.Text(label="Transcription"),
|
|
|
41 |
gr.Interface(
|
42 |
fn=predict,
|
43 |
inputs=[
|
44 |
+
gr.Audio(label="Upload Speech", source="upload", type="filepath"),
|
45 |
+
gr.Audio(label="Record Speech", source="microphone", type="filepath"),
|
46 |
],
|
47 |
outputs=[
|
48 |
gr.Text(label="Transcription"),
|