improve embed trigger token not found error

- Now indicates that the trigger is *neither* a huggingface concept,
  nor the trigger of a locally loaded embed.
This commit is contained in:
Lincoln Stein 2023-01-19 15:46:58 -05:00
parent 3c3d893b9d
commit 775e1a21c7

View File

@ -59,7 +59,7 @@ class HuggingFaceConceptsLibrary(object):
be downloaded.
'''
if not concept_name in self.list_concepts():
print(f'This concept is not known to the Hugging Face library. Generation will continue without the concept.')
print(f'This concept is not a local embedding trigger, nor is it a HuggingFace concept. Generation will continue without the concept.')
return None
return self.get_concept_file(concept_name.lower(),'learned_embeds.bin')