You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
327 B
15 lines
327 B
"""from swarms.models import Dalle3
|
|
|
|
# Create an instance of the Dalle3 class with high quality
|
|
dalle3 = Dalle3(quality="high")
|
|
|
|
# Define a text prompt
|
|
task = "A high-quality image of a sunset"
|
|
|
|
# Generate a high-quality image from the text prompt
|
|
image_url = dalle3(task)
|
|
|
|
# Print the generated image URL
|
|
print(image_url)
|
|
"""
|