roychao19477 commited on
Commit
50d2737
·
1 Parent(s): 06491e5

Test on lengths

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -254,7 +254,7 @@ def extract_faces(video_file):
254
  enhanced_audio_path = run_avse_inference(output_path, audio_path)
255
 
256
  # For API:
257
- static_dir = "./file"
258
  os.makedirs(static_dir, exist_ok=True)
259
 
260
  # Move/copy to static
@@ -263,9 +263,9 @@ def extract_faces(video_file):
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
270
 
271
  iface = gr.Interface(
 
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
 
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
270
 
271
  iface = gr.Interface(