diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-12-25 06:11:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-25 06:11:42 +0000 |
commit | c1512ef9aeb2234ccf7757c678e5c6e2b9d561c4 (patch) | |
tree | 936630b54b10f7bc5b122b300ce59b6951de3e53 /modules/api/models.py | |
parent | 8eef9d8e782aa0655241e43f67059aa7bef3bdca (diff) | |
parent | 5f1dfbbc959855fd90ba80c0c76301d2063772fa (diff) | |
download | stable-diffusion-webui-gfx803-c1512ef9aeb2234ccf7757c678e5c6e2b9d561c4.tar.gz stable-diffusion-webui-gfx803-c1512ef9aeb2234ccf7757c678e5c6e2b9d561c4.tar.bz2 stable-diffusion-webui-gfx803-c1512ef9aeb2234ccf7757c678e5c6e2b9d561c4.zip |
Merge pull request #5999 from vladmandic/trainapi
implement train api
Diffstat (limited to 'modules/api/models.py')
-rw-r--r-- | modules/api/models.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index a22bc6b3..c446ce7a 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -175,6 +175,15 @@ class InterrogateRequest(BaseModel): class InterrogateResponse(BaseModel): caption: str = Field(default=None, title="Caption", description="The generated caption for the image.") +class TrainResponse(BaseModel): + info: str = Field(title="Train info", description="Response string from train embedding or hypernetwork task.") + +class CreateResponse(BaseModel): + info: str = Field(title="Create info", description="Response string from create embedding or hypernetwork task.") + +class PreprocessResponse(BaseModel): + info: str = Field(title="Preprocess info", description="Response string from preprocessing task.") + fields = {} for key, metadata in opts.data_labels.items(): value = opts.data.get(key) |