mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
upgraded model
This commit is contained in:
parent
b2f5bd8625
commit
371a91595c
1
.gitignore
vendored
1
.gitignore
vendored
@ -151,7 +151,6 @@ configs/*
|
||||
|
||||
# personalities other than the default one
|
||||
personalities/*
|
||||
!personalities/english/general/gpt4all_chatbot/config.yaml
|
||||
|
||||
# personalities other than the default one
|
||||
databases/*
|
||||
|
8
app.py
8
app.py
@ -309,8 +309,12 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
||||
return jsonify(personalities_categories)
|
||||
|
||||
def list_personalities(self):
|
||||
personalities_dir = Path(f'./personalities/{self.config["personality_language"]}/{self.config["personality_category"]}') # replace with the actual path to the models folder
|
||||
personalities = [f.stem for f in personalities_dir.iterdir() if f.is_dir()]
|
||||
try:
|
||||
personalities_dir = Path(f'./personalities/{self.config["personality_language"]}/{self.config["personality_category"]}') # replace with the actual path to the models folder
|
||||
personalities = [f.stem for f in personalities_dir.iterdir() if f.is_dir()]
|
||||
except:
|
||||
personalities=[]
|
||||
print("nope")
|
||||
return jsonify(personalities)
|
||||
|
||||
def list_languages(self):
|
||||
|
@ -6,6 +6,7 @@ pyyaml
|
||||
markdown
|
||||
pyllamacpp==2.1.1
|
||||
gpt4all-j==0.2.1
|
||||
pygptj
|
||||
--find-links https://download.pytorch.org/whl/cu117
|
||||
torch==2.0.0
|
||||
torchvision
|
||||
|
Loading…
Reference in New Issue
Block a user