mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-15 06:33:31 +00:00
python binding: print debug message to stderr
This commit is contained in:
parent
5d346e13d7
commit
40c78d2f78
@ -2,6 +2,7 @@
|
|||||||
Python only API for running all GPT4All models.
|
Python only API for running all GPT4All models.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import time
|
import time
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@ -172,7 +173,7 @@ class GPT4All:
|
|||||||
config.pop("url", None)
|
config.pop("url", None)
|
||||||
config["path"] = model_dest
|
config["path"] = model_dest
|
||||||
if verbose:
|
if verbose:
|
||||||
print("Found model file at ", model_dest)
|
print("Found model file at", model_dest, file=sys.stderr)
|
||||||
|
|
||||||
# If model file does not exist, download
|
# If model file does not exist, download
|
||||||
elif allow_download:
|
elif allow_download:
|
||||||
|
Loading…
Reference in New Issue
Block a user