abreza commited on
Commit
3f1ddfc
1 Parent(s): 579ff22
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -102,8 +102,8 @@ def generate_video(source_image, driven_audio, preprocess='crop', still_mode=Fal
102
  ref_eyeblink_coeff_path = ref_video_coeff_path
103
  elif ref_info == 'pose+blink':
104
  ref_pose_coeff_path = ref_eyeblink_coeff_path = ref_video_coeff_path
105
- elif ref_info == 'all':
106
- ref_pose_coeff_path = ref_eyeblink_coeff_path = None
107
 
108
  # Generate coefficients from audio or reference video
109
  if use_ref_video and ref_info == 'all':
 
102
  ref_eyeblink_coeff_path = ref_video_coeff_path
103
  elif ref_info == 'pose+blink':
104
  ref_pose_coeff_path = ref_eyeblink_coeff_path = ref_video_coeff_path
105
+ else:
106
+ ref_pose_coeff_path = ref_eyeblink_coeff_path = None
107
 
108
  # Generate coefficients from audio or reference video
109
  if use_ref_video and ref_info == 'all':