Update README.md
Browse files
README.md
CHANGED
@@ -193,7 +193,7 @@ except Exception as e:
|
|
193 |
|
194 |
# Initialize the diffusion pipeline
|
195 |
try:
|
196 |
-
pipe =
|
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("
|
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}")
|