Commit
·
2366bc6
1
Parent(s):
e058aa0
remove default none value from srt file
Browse files- app.py +2 -2
- requirements.txt +0 -0
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def main():
|
|
| 16 |
"turbo",
|
| 17 |
"large-v3"], value="deepdml/faster-whisper-large-v3-turbo-ct2", label="Select Model")
|
| 18 |
text_output = gr.Textbox(label="SRT Text transcription")
|
| 19 |
-
srt_file = gr.File(
|
| 20 |
text_clean_output = gr.Textbox(label="Text transcription")
|
| 21 |
gr.Interface(
|
| 22 |
fn=transcriber,
|
|
@@ -34,7 +34,7 @@ def main():
|
|
| 34 |
"turbo",
|
| 35 |
"large-v3"], value="deepdml/faster-whisper-large-v3-turbo-ct2", label="Select Model")
|
| 36 |
text_output = gr.Textbox(label="SRT Text transcription")
|
| 37 |
-
srt_file = gr.File(
|
| 38 |
text_clean_output = gr.Textbox(label="Text transcription")
|
| 39 |
gr.Interface(
|
| 40 |
fn=transcriber,
|
|
|
|
| 16 |
"turbo",
|
| 17 |
"large-v3"], value="deepdml/faster-whisper-large-v3-turbo-ct2", label="Select Model")
|
| 18 |
text_output = gr.Textbox(label="SRT Text transcription")
|
| 19 |
+
srt_file = gr.File(file_count="single", type="filepath", file_types=[".srt"], label="SRT file")
|
| 20 |
text_clean_output = gr.Textbox(label="Text transcription")
|
| 21 |
gr.Interface(
|
| 22 |
fn=transcriber,
|
|
|
|
| 34 |
"turbo",
|
| 35 |
"large-v3"], value="deepdml/faster-whisper-large-v3-turbo-ct2", label="Select Model")
|
| 36 |
text_output = gr.Textbox(label="SRT Text transcription")
|
| 37 |
+
srt_file = gr.File(file_count="single", type="filepath", file_types=[".srt"], label="SRT file")
|
| 38 |
text_clean_output = gr.Textbox(label="Text transcription")
|
| 39 |
gr.Interface(
|
| 40 |
fn=transcriber,
|
requirements.txt
CHANGED
|
Binary files a/requirements.txt and b/requirements.txt differ
|
|
|