Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
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"
|