flocolombari
commited on
Commit
•
af073f3
1
Parent(s):
01cc284
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def video_to_descriptions(video, target_language="en"):
|
|
58 |
print(audio_file)
|
59 |
|
60 |
output_path = "./bark_out.wav"
|
61 |
-
scipy.io.wavfile.write(output_path, rate=audio_file["sampling_rate"], data=audio_file["audio"].squeeze())
|
62 |
|
63 |
return output_path
|
64 |
#return translated_text
|
|
|
58 |
print(audio_file)
|
59 |
|
60 |
output_path = "./bark_out.wav"
|
61 |
+
scipy.io.wavfile.write(output_path, rate=audio_file["sampling_rate"], data=audio_file["audio"][0].squeeze())
|
62 |
|
63 |
return output_path
|
64 |
#return translated_text
|