mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 04:17:52 +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 other than the default one
|
||||||
personalities/*
|
personalities/*
|
||||||
!personalities/english/general/gpt4all_chatbot/config.yaml
|
|
||||||
|
|
||||||
# personalities other than the default one
|
# personalities other than the default one
|
||||||
databases/*
|
databases/*
|
||||||
|
4
app.py
4
app.py
@ -309,8 +309,12 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
|||||||
return jsonify(personalities_categories)
|
return jsonify(personalities_categories)
|
||||||
|
|
||||||
def list_personalities(self):
|
def list_personalities(self):
|
||||||
|
try:
|
||||||
personalities_dir = Path(f'./personalities/{self.config["personality_language"]}/{self.config["personality_category"]}') # replace with the actual path to the models folder
|
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()]
|
personalities = [f.stem for f in personalities_dir.iterdir() if f.is_dir()]
|
||||||
|
except:
|
||||||
|
personalities=[]
|
||||||
|
print("nope")
|
||||||
return jsonify(personalities)
|
return jsonify(personalities)
|
||||||
|
|
||||||
def list_languages(self):
|
def list_languages(self):
|
||||||
|
@ -6,6 +6,7 @@ pyyaml
|
|||||||
markdown
|
markdown
|
||||||
pyllamacpp==2.1.1
|
pyllamacpp==2.1.1
|
||||||
gpt4all-j==0.2.1
|
gpt4all-j==0.2.1
|
||||||
|
pygptj
|
||||||
--find-links https://download.pytorch.org/whl/cu117
|
--find-links https://download.pytorch.org/whl/cu117
|
||||||
torch==2.0.0
|
torch==2.0.0
|
||||||
torchvision
|
torchvision
|
||||||
|
Loading…
Reference in New Issue
Block a user