marquesafonso
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ 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 |
video_file = gr.File(file_types=["video"],type="filepath", label="Upload a video")
|
9 |
max_words_per_line = gr.Number(value=6, label="Max words per line")
|
10 |
-
task = gr.
|
11 |
text_output = gr.Textbox(label="SRT Text transcription", show_copy_button=True)
|
12 |
srt_file = gr.File(file_count="single", type="filepath", file_types=[".srt"], label="SRT file")
|
13 |
text_clean_output = gr.Textbox(label="Text transcription", show_copy_button=True)
|
|
|
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 |
video_file = gr.File(file_types=["video"],type="filepath", label="Upload a video")
|
9 |
max_words_per_line = gr.Number(value=6, label="Max words per line")
|
10 |
+
task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
|
11 |
text_output = gr.Textbox(label="SRT Text transcription", show_copy_button=True)
|
12 |
srt_file = gr.File(file_count="single", type="filepath", file_types=[".srt"], label="SRT file")
|
13 |
text_clean_output = gr.Textbox(label="Text transcription", show_copy_button=True)
|