Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,7 @@ def generate_image(prompt):
|
|
21 |
buffered = BytesIO()
|
22 |
image.save(buffered, format="JPEG")
|
23 |
image_bytes = buffered.getvalue()
|
|
|
24 |
return image_bytes
|
25 |
else:
|
26 |
raise Exception("No images returned by the model.")
|
|
|
21 |
buffered = BytesIO()
|
22 |
image.save(buffered, format="JPEG")
|
23 |
image_bytes = buffered.getvalue()
|
24 |
+
print(f'image_bytes:{image_bytes}')
|
25 |
return image_bytes
|
26 |
else:
|
27 |
raise Exception("No images returned by the model.")
|