Add missing size param to generate_image_with_dalle (#2691)

This commit is contained in:
Andres Caicedo
2023-04-21 04:00:44 +02:00
committed by GitHub
parent 00ecb983e7
commit 558003704e

View File

@@ -77,12 +77,13 @@ def generate_image_with_hf(prompt: str, filename: str) -> str:
return f"Saved to disk:{filename}"
def generate_image_with_dalle(prompt: str, filename: str) -> str:
def generate_image_with_dalle(prompt: str, filename: str, size: int) -> str:
"""Generate an image with DALL-E.
Args:
prompt (str): The prompt to use
filename (str): The filename to save the image to
size (int): The size of the image
Returns:
str: The filename of the image