tuan2308 commited on
Commit
7a0cd53
·
verified ·
1 Parent(s): 5673b84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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), 90]) # 90 là chất lượng JPEG (có thể chỉnh)
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