Spaces:
Running
on
Zero
Running
on
Zero
artificialguybr
commited on
Commit
•
2d49e86
1
Parent(s):
88e6690
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,11 @@ import numpy as np
|
|
13 |
import librosa
|
14 |
|
15 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
|
|
|
|
|
|
|
|
|
|
16 |
def process_video(video, high_quality, target_language):
|
17 |
with tempfile.TemporaryDirectory() as temp_dir:
|
18 |
output_filename = os.path.join(temp_dir, "resized_video.mp4")
|
|
|
13 |
import librosa
|
14 |
|
15 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
16 |
+
|
17 |
+
ZipFile("ffmpeg.zip").extractall()
|
18 |
+
st = os.stat('ffmpeg')
|
19 |
+
os.chmod('ffmpeg', st.st_mode | stat.S_IEXEC)
|
20 |
+
|
21 |
def process_video(video, high_quality, target_language):
|
22 |
with tempfile.TemporaryDirectory() as temp_dir:
|
23 |
output_filename = os.path.join(temp_dir, "resized_video.mp4")
|