ruslanmv commited on
Commit
8a9a611
·
1 Parent(s): ee9a7e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -15
app.py CHANGED
@@ -6,17 +6,7 @@ import speech_recognition as sr
6
  from googletrans import Translator, constants
7
  from pprint import pprint
8
  from moviepy.editor import *
9
-
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
-
20
  # Insert Local Video File Path
21
  videoclip = VideoFileClip(file_obj.name)
22
  # Insert Local Audio File Path
@@ -90,9 +80,9 @@ gr.Interface(fn = video_to_translate,
90
  For more information visit <a href="https://ruslanmv.com/">ruslanmv.com</a>
91
  </p>
92
  </div>''',
93
- #examples=[['obama.mp4',"English",'Spanish'],
94
- # ['obama.mp4',"English",'Italian'],
95
- # ['obama.mp4',"English",'German'],
96
- # ['obama.mp4',"English",'Japanese']
97
- # ]
98
  ).launch()
 
6
  from googletrans import Translator, constants
7
  from pprint import pprint
8
  from moviepy.editor import *
 
 
 
 
 
 
 
 
 
9
  def video_to_translate(file_obj,initial_language,final_language):
 
10
  # Insert Local Video File Path
11
  videoclip = VideoFileClip(file_obj.name)
12
  # Insert Local Audio File Path
 
80
  For more information visit <a href="https://ruslanmv.com/">ruslanmv.com</a>
81
  </p>
82
  </div>''',
83
+ examples=[['obama.mp4',"English",'Spanish'],
84
+ ['obama.mp4',"English",'Italian'],
85
+ ['obama.mp4',"English",'German'],
86
+ ['obama.mp4',"English",'Japanese']
87
+ ]
88
  ).launch()