danielsapit commited on
Commit
a8f51b3
1 Parent(s): a74eb4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -95,8 +95,10 @@ def inference(input_img, is_gray, input_quality, enable_zoom, zoom, x_shift, y_s
95
 
96
  if img_E.ndim == 3:
97
  img_E = img_E[:, :, [2, 1, 0]]
 
 
98
  if (state[1] is not None) and enable_zoom:
99
- img_E = state[1]
100
  out_img = Image.fromarray(img_E)
101
  out_img_w, out_img_h = out_img.size # output image size
102
  zoom = zoom/100
 
95
 
96
  if img_E.ndim == 3:
97
  img_E = img_E[:, :, [2, 1, 0]]
98
+
99
+ print("--inference finished")
100
  if (state[1] is not None) and enable_zoom:
101
+ img_E = state[1]
102
  out_img = Image.fromarray(img_E)
103
  out_img_w, out_img_h = out_img.size # output image size
104
  zoom = zoom/100