Spaces:
Sleeping
Sleeping
Commit
•
10e5df5
1
Parent(s):
ecf77bf
Add artifacts joining
Browse filesCo-authored-by: Pedro Nogueira Coutinho <[email protected]>
- join.py +8 -0
- requirements.txt +1 -0
join.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import ffmpeg
|
2 |
+
|
3 |
+
def join_artifacts():
|
4 |
+
audio_in = ffmpeg.input('audio_out.mp3')
|
5 |
+
video_in = ffmpeg.input('out.mp4')
|
6 |
+
ffmpeg.concat(video_in.filter("subtitles", "audio_out.srt"), audio_in, v=1, a=1).output('av_out.mp4').run()
|
7 |
+
|
8 |
+
join_artifacts()
|
requirements.txt
CHANGED
@@ -19,6 +19,7 @@ openai
|
|
19 |
elevenlabslib
|
20 |
replicate
|
21 |
rev_ai
|
|
|
22 |
# transformers
|
23 |
torchlibrosa
|
24 |
transformers
|
|
|
19 |
elevenlabslib
|
20 |
replicate
|
21 |
rev_ai
|
22 |
+
urllib3
|
23 |
# transformers
|
24 |
torchlibrosa
|
25 |
transformers
|