Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def realesrgan(img, model_name, denoise_strength, face_enhance, outscale):
|
|
| 101 |
extension = 'jpg'
|
| 102 |
|
| 103 |
out_filename = f"output_{rnd_string(8)}.{extension}"
|
| 104 |
-
cv2.imwrite(out_filename, output, [int(cv2.IMWRITE_JPEG_QUALITY),
|
| 105 |
global last_file
|
| 106 |
last_file = out_filename
|
| 107 |
return out_filename
|
|
|
|
| 101 |
extension = 'jpg'
|
| 102 |
|
| 103 |
out_filename = f"output_{rnd_string(8)}.{extension}"
|
| 104 |
+
cv2.imwrite(out_filename, output, [int(cv2.IMWRITE_JPEG_QUALITY), 92])
|
| 105 |
global last_file
|
| 106 |
last_file = out_filename
|
| 107 |
return out_filename
|