Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def generate_image(prompt):
|
|
34 |
image_bytes = buffered.getvalue()
|
35 |
img_str = base64.b64encode(image_bytes).decode("utf-8")
|
36 |
print("Image encoded to base64")
|
37 |
-
print(f'img_str: {img_str}')
|
38 |
return img_str, None
|
39 |
else:
|
40 |
print(f"No images found in model output")
|
|
|
34 |
image_bytes = buffered.getvalue()
|
35 |
img_str = base64.b64encode(image_bytes).decode("utf-8")
|
36 |
print("Image encoded to base64")
|
37 |
+
print(f'img_str: {img_str[:100]}...') # Print a snippet of the base64 string
|
38 |
return img_str, None
|
39 |
else:
|
40 |
print(f"No images found in model output")
|