Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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 |
|