Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,11 @@ from src.utils import slugify, write_srt, write_vtt
|
|
27 |
from src.vad import AbstractTranscription, NonSpeechStrategy, PeriodicTranscriptionConfig, TranscriptionConfig, VadPeriodicTranscription, VadSileroTranscription
|
28 |
from src.whisperContainer import WhisperContainer
|
29 |
|
|
|
|
|
|
|
|
|
|
|
30 |
# Limitations (set to -1 to disable)
|
31 |
DEFAULT_INPUT_AUDIO_MAX_DURATION = 600 # seconds
|
32 |
|
|
|
27 |
from src.vad import AbstractTranscription, NonSpeechStrategy, PeriodicTranscriptionConfig, TranscriptionConfig, VadPeriodicTranscription, VadSileroTranscription
|
28 |
from src.whisperContainer import WhisperContainer
|
29 |
|
30 |
+
# Temporary Fix - Create cache folder fold converting custom models
|
31 |
+
cache_dir = "/root/.cache/whisper"
|
32 |
+
if not os.path.exists(cache_dir):
|
33 |
+
os.makedirs(cache_dir)
|
34 |
+
|
35 |
# Limitations (set to -1 to disable)
|
36 |
DEFAULT_INPUT_AUDIO_MAX_DURATION = 600 # seconds
|
37 |
|