From cd319b0ab1ea55d77f36b93dae9096bc6cfa222a Mon Sep 17 00:00:00 2001 From: Estelle Poulin Date: Thu, 1 Jun 2023 10:37:44 -0400 Subject: [PATCH] Height needs a default --- stabilityai/__init__.py | 2 +- stabilityai/models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stabilityai/__init__.py b/stabilityai/__init__.py index 7863915..976498a 100644 --- a/stabilityai/__init__.py +++ b/stabilityai/__init__.py @@ -1 +1 @@ -__version__ = "1.0.2" +__version__ = "1.0.3" diff --git a/stabilityai/models.py b/stabilityai/models.py index 13fa308..a3c9ab4 100644 --- a/stabilityai/models.py +++ b/stabilityai/models.py @@ -187,8 +187,8 @@ class TextToImageRequestBody(GenerationRequestOptionalParams): class ImageToImageUpscaleRequestBody(BaseModel): image: InitImage - width: Optional[UpscaleImageWidth] - height: Optional[UpscaleImageHeight] + width: Optional[UpscaleImageWidth] = None + height: Optional[UpscaleImageHeight] = None @validator("width", always=True) def mutually_exclusive(cls, v, values):