Spaces:
Sleeping
Sleeping
roychao19477
commited on
Commit
·
627ea74
1
Parent(s):
50d2737
Test on lengths
Browse files
app.py
CHANGED
@@ -253,17 +253,6 @@ def extract_faces(video_file):
|
|
253 |
|
254 |
enhanced_audio_path = run_avse_inference(output_path, audio_path)
|
255 |
|
256 |
-
# For API:
|
257 |
-
static_dir = "/home/user/app/file"
|
258 |
-
os.makedirs(static_dir, exist_ok=True)
|
259 |
-
|
260 |
-
# Move/copy to static
|
261 |
-
face_video_out = os.path.join(static_dir, "face_only_video.mp4")
|
262 |
-
enhanced_audio_out = os.path.join(static_dir, "enhanced_audio.wav")
|
263 |
-
shutil.copy(output_path, face_video_out)
|
264 |
-
shutil.copy(enhanced_audio_path, enhanced_audio_out)
|
265 |
-
|
266 |
-
#return face_video_out, enhanced_audio_out
|
267 |
|
268 |
return output_path, enhanced_audio_path
|
269 |
#return output_path, audio_path
|
|
|
253 |
|
254 |
enhanced_audio_path = run_avse_inference(output_path, audio_path)
|
255 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
|
257 |
return output_path, enhanced_audio_path
|
258 |
#return output_path, audio_path
|