Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def greet(mood,select_model,image):
|
|
44 |
output = query({"inputs":mood}, select_model, image)
|
45 |
|
46 |
if (select_model=="Text2Image"):
|
47 |
-
|
48 |
image = Image.open(io.BytesIO(output))
|
49 |
else:
|
50 |
print (str(output))
|
|
|
44 |
output = query({"inputs":mood}, select_model, image)
|
45 |
|
46 |
if (select_model=="Text2Image"):
|
47 |
+
from PIL import Image
|
48 |
image = Image.open(io.BytesIO(output))
|
49 |
else:
|
50 |
print (str(output))
|