deneesk commited on
Commit
8357b3d
1 Parent(s): 789e112

Upload predict.py

Browse files
Files changed (1) hide show
  1. predict.py +2 -2
predict.py CHANGED
@@ -49,7 +49,7 @@ class Predictor(BasePredictor):
49
  index: int = Input(description="video Source", default=0),
50
  target: CogPath = Input(description="face image", default=None),
51
  output_quality: int = Input(description="WARNING!!! 0 - HIGHEST 100 - LOWEST", default=0),
52
- ) -> Path:
53
  out_path = Path(tempfile.mkdtemp(suffix='.mp4'))
54
  print('*****************************************>')
55
  print(out_path)
@@ -66,4 +66,4 @@ class Predictor(BasePredictor):
66
  out_path = output_dir + video_name
67
  run_cmd("python run.py --target "+source+" --source "+target+" -o "+str(out_path)+f" --execution-provider cuda --frame-processor face_swapper --output-video-quality {int(output_quality)}")
68
  # output_file = output_dir + "/"+video_name
69
- return Path(out_path)
 
49
  index: int = Input(description="video Source", default=0),
50
  target: CogPath = Input(description="face image", default=None),
51
  output_quality: int = Input(description="WARNING!!! 0 - HIGHEST 100 - LOWEST", default=0),
52
+ ) -> CogPath:
53
  out_path = Path(tempfile.mkdtemp(suffix='.mp4'))
54
  print('*****************************************>')
55
  print(out_path)
 
66
  out_path = output_dir + video_name
67
  run_cmd("python run.py --target "+source+" --source "+target+" -o "+str(out_path)+f" --execution-provider cuda --frame-processor face_swapper --output-video-quality {int(output_quality)}")
68
  # output_file = output_dir + "/"+video_name
69
+ return CogPath(out_path)