Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,12 +10,14 @@ from moviepy.editor import *
|
|
10 |
import subprocess
|
11 |
import sys
|
12 |
|
13 |
-
|
14 |
-
|
15 |
#install("googletrans==4.0.0rc1")
|
16 |
|
17 |
|
18 |
def video_to_translate(file_obj,initial_language,final_language):
|
|
|
|
|
19 |
|
20 |
# Insert Local Video File Path
|
21 |
videoclip = VideoFileClip(file_obj.name)
|
|
|
10 |
import subprocess
|
11 |
import sys
|
12 |
|
13 |
+
def install(package):
|
14 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
|
15 |
#install("googletrans==4.0.0rc1")
|
16 |
|
17 |
|
18 |
def video_to_translate(file_obj,initial_language,final_language):
|
19 |
+
install("googletrans==4.0.0rc1")
|
20 |
+
|
21 |
|
22 |
# Insert Local Video File Path
|
23 |
videoclip = VideoFileClip(file_obj.name)
|