johnhelf commited on
Commit
fcfb7f4
·
1 Parent(s): 0ad59ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -47,7 +47,9 @@ def codeinterpreter(openai_key,prompt,filterBG, files):
47
 
48
  for _file in response.files:
49
  if filterBG:
50
- images.append(imGreyAlpha(_file.get_image()))
 
 
51
  else:
52
  images.append(_file.get_image())
53
 
 
47
 
48
  for _file in response.files:
49
  if filterBG:
50
+ img = _file.get_image()
51
+ img2 = imGreyAlpha(img)
52
+ images.append(img2)
53
  else:
54
  images.append(_file.get_image())
55