sczhou commited on
Commit
83881b2
·
verified ·
1 Parent(s): 736e1e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -250,11 +250,11 @@ def inference(image, face_align, background_enhance, face_upsample, upscale, cod
250
  daemon=True
251
  ).start()
252
 
253
- return save_path
254
 
255
  except Exception as error:
256
  print('Global exception', error)
257
- return None
258
 
259
 
260
  title = "CodeFormer: Robust Face Restoration and Enhancement Network"
 
250
  daemon=True
251
  ).start()
252
 
253
+ return save_path, None
254
 
255
  except Exception as error:
256
  print('Global exception', error)
257
+ return None, None
258
 
259
 
260
  title = "CodeFormer: Robust Face Restoration and Enhancement Network"