Skip to content

Commit

Permalink
fix img2img request spec
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Oct 3, 2023
1 parent 131d8c7 commit ed3c0cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipes/Img2Img.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class RequestModel(BaseModel):
text_prompt: str | None

selected_model: typing.Literal[tuple(e.name for e in Img2ImgModels)] | None
selected_controlnet_model: typing.Literal[
tuple(e.name for e in ControlNetModels)
] | None
selected_controlnet_model: list[
typing.Literal[tuple(e.name for e in ControlNetModels)]
] | typing.Literal[tuple(e.name for e in ControlNetModels)] | None
negative_prompt: str | None

num_outputs: int | None
Expand Down

0 comments on commit ed3c0cf

Please sign in to comment.