mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 19:22:32 +00:00
add missing requirement for api and fix some typos
This commit is contained in:
@@ -18,7 +18,7 @@ class TextToImageResponse(BaseModel):
|
||||
|
||||
|
||||
class Api:
|
||||
def __init__(self, txt2img, img2img, run_extras, run_pnginfo):
|
||||
def __init__(self):
|
||||
self.router = APIRouter()
|
||||
app.add_api_route("/v1/txt2img", self.text2imgapi, methods=["POST"])
|
||||
|
||||
|
Reference in New Issue
Block a user