mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
[bug] #3218 HuggingFace API off when --no-internet set
https://github.com/invoke-ai/InvokeAI/issues/3218 Huggingface API will not be queried if --no-internet flag is set
This commit is contained in:
parent
63d10027a4
commit
f6cdff2c5b
@ -57,7 +57,7 @@ class HuggingFaceConceptsLibrary(object):
|
|||||||
self.concept_list.extend(list(local_concepts_to_add))
|
self.concept_list.extend(list(local_concepts_to_add))
|
||||||
return self.concept_list
|
return self.concept_list
|
||||||
return self.concept_list
|
return self.concept_list
|
||||||
else:
|
elif Globals.internet_available is True:
|
||||||
try:
|
try:
|
||||||
models = self.hf_api.list_models(
|
models = self.hf_api.list_models(
|
||||||
filter=ModelFilter(model_name="sd-concepts-library/")
|
filter=ModelFilter(model_name="sd-concepts-library/")
|
||||||
@ -73,6 +73,8 @@ class HuggingFaceConceptsLibrary(object):
|
|||||||
" ** You may load .bin and .pt file(s) manually using the --embedding_directory argument."
|
" ** You may load .bin and .pt file(s) manually using the --embedding_directory argument."
|
||||||
)
|
)
|
||||||
return self.concept_list
|
return self.concept_list
|
||||||
|
else:
|
||||||
|
return self.concept_list
|
||||||
|
|
||||||
def get_concept_model_path(self, concept_name: str) -> str:
|
def get_concept_model_path(self, concept_name: str) -> str:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user