Spanicin commited on
Commit
4978fe4
·
verified ·
1 Parent(s): f377888

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,7 +26,7 @@ from PIL import Image
26
  start_time = time.time()
27
 
28
  class AnimationConfig:
29
- def __init__(self, driven_audio_path, source_image_path, result_folder,pose_style,expression_scale,still,preprocess,ref_pose_video_path):
30
  self.driven_audio = driven_audio_path
31
  self.source_image = source_image_path
32
  self.ref_eyeblink = None
@@ -39,7 +39,7 @@ class AnimationConfig:
39
  self.input_yaw = None
40
  self.input_pitch = None
41
  self.input_roll = None
42
- self.enhancer = None
43
  self.background_enhancer = None
44
  self.cpu = False
45
  self.face3dvis = False
@@ -341,7 +341,7 @@ def generate_video():
341
  return "An error occurred", 500
342
 
343
  # Example of using the class with some hypothetical paths
344
- args = AnimationConfig(driven_audio_path=driven_audio_path, source_image_path=source_image_path, result_folder=result_folder, pose_style=pose_style, expression_scale=expression_scale,still=still,preprocess=preprocess,ref_pose_video_path=ref_pose_video_path)
345
 
346
  if torch.cuda.is_available() and not args.cpu:
347
  args.device = "cuda"
 
26
  start_time = time.time()
27
 
28
  class AnimationConfig:
29
+ def __init__(self, driven_audio_path, source_image_path, result_folder,pose_style,expression_scale,enhancer,still,preprocess,ref_pose_video_path):
30
  self.driven_audio = driven_audio_path
31
  self.source_image = source_image_path
32
  self.ref_eyeblink = None
 
39
  self.input_yaw = None
40
  self.input_pitch = None
41
  self.input_roll = None
42
+ self.enhancer = enhancer
43
  self.background_enhancer = None
44
  self.cpu = False
45
  self.face3dvis = False
 
341
  return "An error occurred", 500
342
 
343
  # Example of using the class with some hypothetical paths
344
+ args = AnimationConfig(driven_audio_path=driven_audio_path, source_image_path=source_image_path, result_folder=result_folder, pose_style=pose_style, expression_scale=expression_scale,enhancer=enhancer,still=still,preprocess=preprocess,ref_pose_video_path=ref_pose_video_path)
345
 
346
  if torch.cuda.is_available() and not args.cpu:
347
  args.device = "cuda"