Spaces:
Runtime error
Runtime error
Commit
·
66b0cbb
1
Parent(s):
aaed919
Update utils.py
Browse files
utils.py
CHANGED
@@ -45,7 +45,7 @@ def get_text_from_audio(audio_path : str) -> Optional[str]:
|
|
45 |
logging.info(f"Attempting to extract text from : {audio_path}")
|
46 |
|
47 |
try :
|
48 |
-
model = whisper.load_model(name='
|
49 |
results = model.transcribe(audio_path)
|
50 |
|
51 |
logging.info("Extraction successful.")
|
|
|
45 |
logging.info(f"Attempting to extract text from : {audio_path}")
|
46 |
|
47 |
try :
|
48 |
+
model = whisper.load_model(name='tiny', download_root=config.MODEL_DIR)
|
49 |
results = model.transcribe(audio_path)
|
50 |
|
51 |
logging.info("Extraction successful.")
|