marquesafonso commited on
Commit
24057c2
·
verified ·
1 Parent(s): 82a426b

fix video (bool) arg in audio tab

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,8 +7,8 @@ def main():
7
  gr.Markdown('An automatic speech recognition tool using [faster-whisper](https://github.com/SYSTRAN/faster-whisper). Supports multilingual video transcription and translation to english. Users may set the max words per line.')
8
 
9
  with gr.Tab("Video"):
10
- file = gr.File(file_types=["video"],type="filepath", label="Upload a video")
11
  video = True
 
12
  max_words_per_line = gr.Number(value=6, label="Max words per line")
13
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
14
  model_version = gr.Radio(choices=["deepdml/faster-whisper-large-v3-turbo-ct2", "large-v3"], value="deepdml/faster-whisper-large-v3-turbo-ct2", label="Select Model")
@@ -21,6 +21,7 @@ def main():
21
  allow_flagging="never")
22
 
23
  with gr.Tab("Audio"):
 
24
  file = gr.File(file_types=["audio"],type="filepath", label="Upload an audio file")
25
  max_words_per_line = gr.Number(value=6, label="Max words per line")
26
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
 
7
  gr.Markdown('An automatic speech recognition tool using [faster-whisper](https://github.com/SYSTRAN/faster-whisper). Supports multilingual video transcription and translation to english. Users may set the max words per line.')
8
 
9
  with gr.Tab("Video"):
 
10
  video = True
11
+ file = gr.File(file_types=["video"],type="filepath", label="Upload a video")
12
  max_words_per_line = gr.Number(value=6, label="Max words per line")
13
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
14
  model_version = gr.Radio(choices=["deepdml/faster-whisper-large-v3-turbo-ct2", "large-v3"], value="deepdml/faster-whisper-large-v3-turbo-ct2", label="Select Model")
 
21
  allow_flagging="never")
22
 
23
  with gr.Tab("Audio"):
24
+ video = False
25
  file = gr.File(file_types=["audio"],type="filepath", label="Upload an audio file")
26
  max_words_per_line = gr.Number(value=6, label="Max words per line")
27
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")