Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
21cf782
1
Parent(s):
7d34100
fix
Browse files- audio_to_text_tool.py +1 -1
audio_to_text_tool.py
CHANGED
@@ -61,7 +61,7 @@ def audio_to_text_from_youtube(youtube_url: str) -> str:
|
|
61 |
Returns:
|
62 |
str: Transcribed text.
|
63 |
"""
|
64 |
-
|
65 |
with tempfile.TemporaryDirectory() as tmpdir:
|
66 |
audio_output_path = os.path.join(tmpdir, "audio.mp3")
|
67 |
|
|
|
61 |
Returns:
|
62 |
str: Transcribed text.
|
63 |
"""
|
64 |
+
try:
|
65 |
with tempfile.TemporaryDirectory() as tmpdir:
|
66 |
audio_output_path = os.path.join(tmpdir, "audio.mp3")
|
67 |
|