diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2024-03-19 13:29:35 +0100 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2024-03-19 13:29:35 +0100 |
commit | cc83c6af01456fceb3d970b0c8a545a794035910 (patch) | |
tree | ef5bce052257d7870d9fc5a917ffb501875ee389 | |
parent | fix import problem in pip (diff) | |
download | gpt4free-cc83c6af01456fceb3d970b0c8a545a794035910.tar gpt4free-cc83c6af01456fceb3d970b0c8a545a794035910.tar.gz gpt4free-cc83c6af01456fceb3d970b0c8a545a794035910.tar.bz2 gpt4free-cc83c6af01456fceb3d970b0c8a545a794035910.tar.lz gpt4free-cc83c6af01456fceb3d970b0c8a545a794035910.tar.xz gpt4free-cc83c6af01456fceb3d970b0c8a545a794035910.tar.zst gpt4free-cc83c6af01456fceb3d970b0c8a545a794035910.zip |
-rw-r--r-- | g4f/local/_engine.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/local/_engine.py b/g4f/local/_engine.py index 5a701894..917de16c 100644 --- a/g4f/local/_engine.py +++ b/g4f/local/_engine.py @@ -10,7 +10,7 @@ class LocalProvider: raise ValueError(f"Model '{model}' not found / not yet implemented") model = models[model] - model_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../models/') + model_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'models/') full_model_path = os.path.join(model_dir, model['path']) if not os.path.isfile(full_model_path): @@ -23,7 +23,7 @@ class LocalProvider: raise ValueError(f"Model '{model['path']}' not found.") model = GPT4All(model_name=model['path'], - n_threads=8, + #n_threads=8, verbose=False, allow_download=False, model_path=model_dir) |