Spanicin commited on
Commit
3845d1c
·
verified ·
1 Parent(s): a42f5f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,6 +25,7 @@ from PIL import Image
25
  import moviepy.editor as mp
26
  import requests
27
  import json
 
28
  # from videoretalking import inference_function
29
  # import base64
30
  # import gfpgan_enhancer
@@ -147,7 +148,7 @@ def main(args):
147
 
148
  if os.path.exists(preprocessed_data_path) and image_hardcoded == "yes":
149
  print("Loading preprocessed data...")
150
- with open(preprocessed_data_path, "rb") as f:
151
  preprocessed_data = pickle.load(f)
152
  first_coeff_path = preprocessed_data["first_coeff_path"]
153
  crop_pic_path = preprocessed_data["crop_pic_path"]
 
25
  import moviepy.editor as mp
26
  import requests
27
  import json
28
+ import pickle
29
  # from videoretalking import inference_function
30
  # import base64
31
  # import gfpgan_enhancer
 
148
 
149
  if os.path.exists(preprocessed_data_path) and image_hardcoded == "yes":
150
  print("Loading preprocessed data...")
151
+ with open(preprocessed_data_path, "rb") as f:
152
  preprocessed_data = pickle.load(f)
153
  first_coeff_path = preprocessed_data["first_coeff_path"]
154
  crop_pic_path = preprocessed_data["crop_pic_path"]