Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c18075e9f | ||
|
|
e0ec5dee30 | ||
|
|
c09e56b21f |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui-lora-auto-trigger-words"
|
name = "comfyui-lora-auto-trigger-words"
|
||||||
description = "The aim of these custom nodes is to get an easy access to the tags used to trigger a lora / lycoris. Extract the tags from civitai or from the safetensors metadatas when available."
|
description = "The aim of these custom nodes is to get an easy access to the tags used to trigger a lora / lycoris. Extract the tags from civitai or from the safetensors metadatas when available."
|
||||||
version = "1.0.3"
|
version = "1.0.4"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|||||||
@@ -83,8 +83,11 @@ def save_dict_to_json(data_dict, file_path):
|
|||||||
|
|
||||||
def get_model_version_info(hash_value):
|
def get_model_version_info(hash_value):
|
||||||
api_url = f"https://civitai.com/api/v1/model-versions/by-hash/{hash_value}"
|
api_url = f"https://civitai.com/api/v1/model-versions/by-hash/{hash_value}"
|
||||||
response = requests.get(api_url)
|
try:
|
||||||
|
response = requests.get(api_url)
|
||||||
|
except Exception as e:
|
||||||
|
print(f"[Lora-Auto-Trigger] {e}")
|
||||||
|
return None
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return response.json()
|
return response.json()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user