Spaces:
Running
Running
none
commited on
Commit
·
fa9993d
1
Parent(s):
3936b33
try to fix bug in online inference
Browse files
app.py
CHANGED
@@ -192,7 +192,6 @@ def deepdubber(video_path: str, subtitle_text: str, audio_path: str = None) -> s
|
|
192 |
|
193 |
def process_video_dubbing(video_path: str, subtitle_text: str, audio_path: str = None) -> str:
|
194 |
try:
|
195 |
-
print(f"Processing video: {video_path}")
|
196 |
if not os.path.exists(video_path):
|
197 |
raise ValueError("Video file does not exist")
|
198 |
|
@@ -202,6 +201,8 @@ def process_video_dubbing(video_path: str, subtitle_text: str, audio_path: str =
|
|
202 |
if audio_path is None:
|
203 |
audio_path = "datasets/CoTMovieDubbing/GT.wav"
|
204 |
|
|
|
|
|
205 |
res, output_path = deepdubber(video_path, subtitle_text, audio_path)
|
206 |
|
207 |
return res, output_path
|
|
|
192 |
|
193 |
def process_video_dubbing(video_path: str, subtitle_text: str, audio_path: str = None) -> str:
|
194 |
try:
|
|
|
195 |
if not os.path.exists(video_path):
|
196 |
raise ValueError("Video file does not exist")
|
197 |
|
|
|
201 |
if audio_path is None:
|
202 |
audio_path = "datasets/CoTMovieDubbing/GT.wav"
|
203 |
|
204 |
+
print(f"Processing video: {video_path}")
|
205 |
+
|
206 |
res, output_path = deepdubber(video_path, subtitle_text, audio_path)
|
207 |
|
208 |
return res, output_path
|