This commit is contained in:
cmdr2 2023-08-24 17:39:39 +05:30
parent 3f278cf2ad
commit f9f9aba92d

View File

@ -104,7 +104,7 @@ def resolve_model_to_use(model_name: Union[str, list] = None, model_type: str =
for m in model_names: for m in model_names:
if model_type == "embeddings": if model_type == "embeddings":
try: try:
resolve_model_to_use_single(m, model_type, fail_if_not_found) resolve_model_to_use_single(m, model_type)
except FileNotFoundError: # try with spaces except FileNotFoundError: # try with spaces
m = m.replace("_", " ") m = m.replace("_", " ")