Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,9 +10,9 @@ from moviepy.editor import *
|
|
| 10 |
import subprocess
|
| 11 |
import sys
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
|
| 17 |
|
| 18 |
def video_to_translate(file_obj,initial_language,final_language):
|
|
|
|
| 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):
|