johnhelf commited on
Commit
2a2622d
·
1 Parent(s): c616e4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -10,6 +10,7 @@ from codeinterpreterapi import CodeInterpreterSession
10
 
11
 
12
  def imGreyAlpha(im):
 
13
  grey = im.convert('L') # 转成灰度
14
  px = grey.load() # 获取灰度数组
15
 
 
10
 
11
 
12
  def imGreyAlpha(im):
13
+ im = Image.fromarray(im)
14
  grey = im.convert('L') # 转成灰度
15
  px = grey.load() # 获取灰度数组
16