remove show_copy_button flag
Browse files
app.py
CHANGED
@@ -13,9 +13,9 @@ def main():
|
|
13 |
max_words_per_line = gr.Number(value=6, label="Max words per line")
|
14 |
task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
|
15 |
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")
|
16 |
-
text_output = gr.Textbox(label="SRT Text transcription"
|
17 |
srt_file = gr.File(file_count="single", type="filepath", file_types=[".srt"], label="SRT file")
|
18 |
-
text_clean_output = gr.Textbox(label="Text transcription"
|
19 |
gr.Interface(transcriber,
|
20 |
inputs=[file, file_type, max_words_per_line, task, model_version],
|
21 |
outputs=[text_output, srt_file, text_clean_output],
|
@@ -28,9 +28,9 @@ def main():
|
|
28 |
max_words_per_line = gr.Number(value=6, label="Max words per line")
|
29 |
task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
|
30 |
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")
|
31 |
-
text_output = gr.Textbox(label="SRT Text transcription"
|
32 |
srt_file = gr.File(file_count="single", type="filepath", file_types=[".srt"], label="SRT file")
|
33 |
-
text_clean_output = gr.Textbox(label="Text transcription"
|
34 |
gr.Interface(transcriber,
|
35 |
inputs=[file, file_type, max_words_per_line, task, model_version],
|
36 |
outputs=[text_output, srt_file, text_clean_output],
|
|
|
13 |
max_words_per_line = gr.Number(value=6, label="Max words per line")
|
14 |
task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
|
15 |
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")
|
16 |
+
text_output = gr.Textbox(label="SRT Text transcription")
|
17 |
srt_file = gr.File(file_count="single", type="filepath", file_types=[".srt"], label="SRT file")
|
18 |
+
text_clean_output = gr.Textbox(label="Text transcription")
|
19 |
gr.Interface(transcriber,
|
20 |
inputs=[file, file_type, max_words_per_line, task, model_version],
|
21 |
outputs=[text_output, srt_file, text_clean_output],
|
|
|
28 |
max_words_per_line = gr.Number(value=6, label="Max words per line")
|
29 |
task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
|
30 |
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")
|
31 |
+
text_output = gr.Textbox(label="SRT Text transcription")
|
32 |
srt_file = gr.File(file_count="single", type="filepath", file_types=[".srt"], label="SRT file")
|
33 |
+
text_clean_output = gr.Textbox(label="Text transcription")
|
34 |
gr.Interface(transcriber,
|
35 |
inputs=[file, file_type, max_words_per_line, task, model_version],
|
36 |
outputs=[text_output, srt_file, text_clean_output],
|