lambda-technologies-limited commited on
Commit
75b0c6d
·
verified ·
1 Parent(s): e903a17

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -193,7 +193,7 @@ except Exception as e:
193
 
194
  # Initialize the diffusion pipeline
195
  try:
196
- pipe = DiffusionPipeline.from_pretrained(model_name, use_auth_token=API_TOKEN)
197
  pipe.to("cuda" if torch.cuda.is_available() else "cpu")
198
  except Exception as e:
199
  print(f"Error initializing pipeline: {e}")
@@ -212,7 +212,7 @@ except Exception as e:
212
 
213
  # Save or display the image
214
  try:
215
- image.save("generated_image.png")
216
  image.show()
217
  except Exception as e:
218
  print(f"Error saving or displaying image: {e}")
 
193
 
194
  # Initialize the diffusion pipeline
195
  try:
196
+ pipe = FluxPipeline.from_pretrained(model_name, use_auth_token=API_TOKEN)
197
  pipe.to("cuda" if torch.cuda.is_available() else "cpu")
198
  except Exception as e:
199
  print(f"Error initializing pipeline: {e}")
 
212
 
213
  # Save or display the image
214
  try:
215
+ image.save("floral-hdr.png")
216
  image.show()
217
  except Exception as e:
218
  print(f"Error saving or displaying image: {e}")