Remove hardcoded preview url modifiers, use ResultType instead

Fixes #284
This commit is contained in:
DominikDoom
2024-04-15 18:48:44 +02:00
parent 4cd6174a22
commit a27633da55
2 changed files with 10 additions and 25 deletions

View File

@@ -727,9 +727,9 @@ def api_tac(_: gr.Blocks, app: FastAPI):
return LORA_PATH
elif type == "lyco":
return LYCO_PATH
elif type == "hyper":
elif type == "hypernetwork":
return HYP_PATH
elif type == "embed":
elif type == "embedding":
return EMB_PATH
else:
return None