python binding: print debug message to stderr

gguf_latest_llama
Cebtenzzre 11 months ago committed by Adam Treat
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…
Cancel
Save