pragnakalp commited on
Commit
1282bca
1 Parent(s): 11879e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -138,12 +138,12 @@ def one_shot_talking(image_in,audio_in):
138
  # Pre-processing of image
139
  crop_img=crop_src_image(image_in)
140
 
 
141
  #Improve quality of input image
142
  os.system(f"python /content/GFPGAN/inference_gfpgan.py --upscale 2 -i /content/image_pre.png -o /content/results --bg_upsampler realesrgan")
143
  # time.sleep(60)
144
- os.system(f"rm -rf /content/results/restored_imgs/image_pre.png")
145
- image_in_one_shot='/content/results/restored_imgs/image_pre.png'
146
 
 
147
 
148
  #One Shot Talking Face algorithm
149
  calculate(image_in_one_shot,audio_in)
 
138
  # Pre-processing of image
139
  crop_img=crop_src_image(image_in)
140
 
141
+ os.system(f"rm -rf /content/results/restored_imgs/image_pre.png")
142
  #Improve quality of input image
143
  os.system(f"python /content/GFPGAN/inference_gfpgan.py --upscale 2 -i /content/image_pre.png -o /content/results --bg_upsampler realesrgan")
144
  # time.sleep(60)
 
 
145
 
146
+ image_in_one_shot='/content/results/restored_imgs/image_pre.png'
147
 
148
  #One Shot Talking Face algorithm
149
  calculate(image_in_one_shot,audio_in)