aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-12-25 06:11:42 +0000
committerGitHub <noreply@github.com>2022-12-25 06:11:42 +0000
commitc1512ef9aeb2234ccf7757c678e5c6e2b9d561c4 (patch)
tree936630b54b10f7bc5b122b300ce59b6951de3e53 /modules/api/models.py
parent8eef9d8e782aa0655241e43f67059aa7bef3bdca (diff)
parent5f1dfbbc959855fd90ba80c0c76301d2063772fa (diff)
downloadstable-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.py9
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)