Ahsen Khaliq commited on
Commit
bf2f5d6
1 Parent(s): 21391d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def inference(img):
52
  cropped_faces, restored_faces, restored_img = restorer.enhance(
53
  input_img, has_aligned=False, only_center_face=False, paste_back=True)
54
 
55
- return Image.fromarray(restored_faces[0])[:,:,::-1]
56
 
57
  title = "GFP-GAN"
58
  description = "Gradio demo for GFP-GAN: Towards Real-World Blind Face Restoration with Generative Facial Prior. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please click submit only once"
 
52
  cropped_faces, restored_faces, restored_img = restorer.enhance(
53
  input_img, has_aligned=False, only_center_face=False, paste_back=True)
54
 
55
+ return Image.fromarray(restored_faces[0][:,:,::-1])
56
 
57
  title = "GFP-GAN"
58
  description = "Gradio demo for GFP-GAN: Towards Real-World Blind Face Restoration with Generative Facial Prior. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please click submit only once"