Spaces:
Runtime error
Runtime error
Commit
·
66e1942
1
Parent(s):
2ced026
Update transforming/whispertransform.py
Browse files
transforming/whispertransform.py
CHANGED
@@ -64,8 +64,9 @@ class WhisperTransform(Transform):
|
|
64 |
except Exception as e:
|
65 |
print(f"StreamingData exception print: {e}")
|
66 |
pass
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
64 |
except Exception as e:
|
65 |
print(f"StreamingData exception print: {e}")
|
66 |
pass
|
67 |
+
else:
|
68 |
+
out_file = video.download(output_path=".")
|
69 |
+
base, _ = os.path.splitext(out_file)
|
70 |
+
new_file = base + ".mp3"
|
71 |
+
os.rename(out_file, new_file)
|
72 |
+
return new_file
|