Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,6 +71,8 @@ def generate_image_from_text(prompt: str) -> None:
|
|
| 71 |
|
| 72 |
# Display the image inline for Jupyter Notebook or applications with inline display support
|
| 73 |
display.display(image)
|
|
|
|
|
|
|
| 74 |
|
| 75 |
except Exception as e:
|
| 76 |
print(f"Error generating image: {str(e)}")
|
|
|
|
| 71 |
|
| 72 |
# Display the image inline for Jupyter Notebook or applications with inline display support
|
| 73 |
display.display(image)
|
| 74 |
+
image.save("generated_image.png")
|
| 75 |
+
print("Image saved as generated_image.png. Open the file to view it.")
|
| 76 |
|
| 77 |
except Exception as e:
|
| 78 |
print(f"Error generating image: {str(e)}")
|