mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-04 17:42:25 +00:00
python: this was supposed to be an f-string
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
059afb8ee8
commit
6da62a62f0
@ -175,7 +175,7 @@ class LLModel:
|
|||||||
model = llmodel.llmodel_model_create2(self.model_path, b"auto", ctypes.byref(err))
|
model = llmodel.llmodel_model_create2(self.model_path, b"auto", ctypes.byref(err))
|
||||||
if model is None:
|
if model is None:
|
||||||
s = err.value
|
s = err.value
|
||||||
raise ValueError("Unable to instantiate model: {'null' if s is None else s.decode()}")
|
raise ValueError(f"Unable to instantiate model: {'null' if s is None else s.decode()}")
|
||||||
self.model = model
|
self.model = model
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user