Daniel Nichols commited on
Commit
ae7d0e1
1 Parent(s): 2233c73

Squashed commit of the following:

Browse files

commit 40ddb1d055ee29ccf85abb41a3e8572dae741d2d
Author: Daniel Nichols <dando18studios@gmail.com>
Date: Sun Dec 1 15:53:30 2024 -0500

Fix model load bugs (#5)

* add clang-17 package

* add guard on local models

commit 2c648309b6c002f529b640917cd7e870f66a4b4d
Author: Daniel Nichols <dando18studios@gmail.com>
Date: Sun Dec 1 15:27:49 2024 -0500

Fixes for release (#4)

* update ignored files

* update documentation

* fix paths to local files

Files changed (2) hide show
  1. packages.txt +1 -0
  2. src/models.py +1 -0
packages.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ clang-17
src/models.py CHANGED
@@ -113,6 +113,7 @@ LOCAL_MODELS = [
113
  AVAILABLE_MODELS = [
114
  LocalModel(model_name, f"local_models/{model_name}.gguf")
115
  for model_name in LOCAL_MODELS
 
116
  ]
117
 
118
  # AVAILABLE_MODELS.append( DummyModel() )
 
113
  AVAILABLE_MODELS = [
114
  LocalModel(model_name, f"local_models/{model_name}.gguf")
115
  for model_name in LOCAL_MODELS
116
+ if os.path.exists(f"local_models/{model_name}.gguf")
117
  ]
118
 
119
  # AVAILABLE_MODELS.append( DummyModel() )