diff options
author | Vladimir Mandic <mandic00@live.com> | 2022-12-24 23:02:22 +0000 |
---|---|---|
committer | Vladimir Mandic <mandic00@live.com> | 2022-12-24 23:02:22 +0000 |
commit | 5f1dfbbc959855fd90ba80c0c76301d2063772fa (patch) | |
tree | ee3b8882fad546f07102039f352ecd2774d6d59c /modules/api/models.py | |
parent | c5bdba2089dc7060be2631bcbc83313b6358cbf2 (diff) | |
download | stable-diffusion-webui-gfx803-5f1dfbbc959855fd90ba80c0c76301d2063772fa.tar.gz stable-diffusion-webui-gfx803-5f1dfbbc959855fd90ba80c0c76301d2063772fa.tar.bz2 stable-diffusion-webui-gfx803-5f1dfbbc959855fd90ba80c0c76301d2063772fa.zip |
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) |