yuragoithf commited on
Commit
749114e
·
1 Parent(s): 2b16aa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def gen_pred(img, model=seg_model):
70
 
71
  # importing Image from PIL
72
  # img_tmp = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
73
- im_PIL = Image.fromarray(img_tmp)
74
  # im = Image.fromarray((pred * 255).astype(np.uint8))
75
  # img_bytes = pred.tobytes()
76
  # nparr = np.frombuffer(img_bytes, np.byte)
 
70
 
71
  # importing Image from PIL
72
  # img_tmp = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
73
+ im_PIL = Image.fromarray(pred)
74
  # im = Image.fromarray((pred * 255).astype(np.uint8))
75
  # img_bytes = pred.tobytes()
76
  # nparr = np.frombuffer(img_bytes, np.byte)