xTorch8 commited on
Commit
03f8630
·
1 Parent(s): 80317ce

Add type in audio

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def transcription(audio_stream, is_video = False):
47
  demo = gr.Interface(
48
  fn = transcription,
49
  inputs = [
50
- gr.Audio(label = "Upload Audio/Video"),
51
  gr.Checkbox(label = "Is this a video file?")
52
  ],
53
  outputs = gr.Textbox(label = "Transcription Output"),
 
47
  demo = gr.Interface(
48
  fn = transcription,
49
  inputs = [
50
+ gr.Audio(label = "Upload Audio/Video", type="filepath"),
51
  gr.Checkbox(label = "Is this a video file?")
52
  ],
53
  outputs = gr.Textbox(label = "Transcription Output"),