aboutsummaryrefslogtreecommitdiff
path: root/modules/api
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-21 09:14:27 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-01-21 09:14:27 +0300
commit6d805b669e86233432f56ee1892d062103abe501 (patch)
treee76ace1a20b959f3a647740bc08085d4c82898aa /modules/api
parent40ff6db5325fc34ad4fa35e80cb1e7768d9f7e75 (diff)
make CLIP interrogator download original text files if the directory does not exist
remove random artist built-in extension (to re-added as a normal extension on demand) remove artists.csv (but what does it mean????????????????????) make interrogate buttons show Loading... when you click them
Diffstat (limited to 'modules/api')
-rw-r--r--modules/api/api.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 2c371e6e..f2e9e884 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -126,8 +126,6 @@ class Api:
self.add_api_route("/sdapi/v1/face-restorers", self.get_face_restorers, methods=["GET"], response_model=List[FaceRestorerItem])
self.add_api_route("/sdapi/v1/realesrgan-models", self.get_realesrgan_models, methods=["GET"], response_model=List[RealesrganItem])
self.add_api_route("/sdapi/v1/prompt-styles", self.get_prompt_styles, methods=["GET"], response_model=List[PromptStyleItem])
- self.add_api_route("/sdapi/v1/artist-categories", self.get_artists_categories, methods=["GET"], response_model=List[str])
- self.add_api_route("/sdapi/v1/artists", self.get_artists, methods=["GET"], response_model=List[ArtistItem])
self.add_api_route("/sdapi/v1/embeddings", self.get_embeddings, methods=["GET"], response_model=EmbeddingsResponse)
self.add_api_route("/sdapi/v1/refresh-checkpoints", self.refresh_checkpoints, methods=["POST"])
self.add_api_route("/sdapi/v1/create/embedding", self.create_embedding, methods=["POST"], response_model=CreateResponse)
@@ -390,12 +388,6 @@ class Api:
return styleList
- def get_artists_categories(self):
- return shared.artist_db.cats
-
- def get_artists(self):
- return [{"name":x[0], "score":x[1], "category":x[2]} for x in shared.artist_db.artists]
-
def get_embeddings(self):
db = sd_hijack.model_hijack.embedding_db