Delete the input temporary files only when the source is a URL after Whisper execution is completed.
Browse files- README.md +1 -1
- app.py +5 -1
- requirements-fasterWhisper.txt +1 -1
- requirements-whisper.txt +1 -1
- requirements.txt +1 -1
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: ✨
|
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 5.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 5.9.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
app.py
CHANGED
@@ -460,7 +460,7 @@ class WhisperTranscriber:
|
|
460 |
|
461 |
finally:
|
462 |
# Cleanup source
|
463 |
-
if self.deleteUploadedFiles:
|
464 |
for source in sources:
|
465 |
print("Deleting temporary source file: " + source.source_path)
|
466 |
try:
|
@@ -1146,6 +1146,10 @@ def create_ui(app_config: ApplicationConfig):
|
|
1146 |
]
|
1147 |
|
1148 |
css = """
|
|
|
|
|
|
|
|
|
1149 |
.scroll-show textarea {
|
1150 |
overflow-y: auto !important;
|
1151 |
scrollbar-width: auto !important;
|
|
|
460 |
|
461 |
finally:
|
462 |
# Cleanup source
|
463 |
+
if self.deleteUploadedFiles and sourceInput == "urlData":
|
464 |
for source in sources:
|
465 |
print("Deleting temporary source file: " + source.source_path)
|
466 |
try:
|
|
|
1146 |
]
|
1147 |
|
1148 |
css = """
|
1149 |
+
.options {
|
1150 |
+
max-height: 65vh !important;
|
1151 |
+
overflow-y: auto !important;
|
1152 |
+
}
|
1153 |
.scroll-show textarea {
|
1154 |
overflow-y: auto !important;
|
1155 |
scrollbar-width: auto !important;
|
requirements-fasterWhisper.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
ctranslate2>=4.4.0
|
3 |
faster-whisper>=1.0.3
|
4 |
ffmpeg-python==0.2.0
|
5 |
-
gradio==5.
|
6 |
yt-dlp
|
7 |
json5
|
8 |
torch
|
|
|
2 |
ctranslate2>=4.4.0
|
3 |
faster-whisper>=1.0.3
|
4 |
ffmpeg-python==0.2.0
|
5 |
+
gradio==5.9.1
|
6 |
yt-dlp
|
7 |
json5
|
8 |
torch
|
requirements-whisper.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
ctranslate2>=4.4.0
|
3 |
git+https://github.com/openai/whisper.git
|
4 |
ffmpeg-python==0.2.0
|
5 |
-
gradio==5.
|
6 |
yt-dlp
|
7 |
json5
|
8 |
torch
|
|
|
2 |
ctranslate2>=4.4.0
|
3 |
git+https://github.com/openai/whisper.git
|
4 |
ffmpeg-python==0.2.0
|
5 |
+
gradio==5.9.1
|
6 |
yt-dlp
|
7 |
json5
|
8 |
torch
|
requirements.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
ctranslate2>=4.4.0
|
3 |
faster-whisper>=1.0.3
|
4 |
ffmpeg-python==0.2.0
|
5 |
-
gradio==5.
|
6 |
yt-dlp
|
7 |
json5
|
8 |
torch
|
|
|
2 |
ctranslate2>=4.4.0
|
3 |
faster-whisper>=1.0.3
|
4 |
ffmpeg-python==0.2.0
|
5 |
+
gradio==5.9.1
|
6 |
yt-dlp
|
7 |
json5
|
8 |
torch
|