arunprasadh commited on
Commit
7060c10
·
verified ·
1 Parent(s): 3db7f0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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)}")