chinmaydan commited on
Commit
1503067
·
1 Parent(s): 0af87d2

accepting input from upload or mic

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="numpy"),
45
- gr.Audio(label="Record Speech", source="microphone", type="numpy"),
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"),