mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
updated doc
This commit is contained in:
parent
b676c29f58
commit
b76474c5f4
@ -97,10 +97,11 @@ Now you're ready to work!
|
||||
|
||||
# Supported backends
|
||||
Two backends are now supported:
|
||||
1 - [The llama_cpp backend by Abdeladim](https://github.com/abdeladim-s/pyllamacpp)
|
||||
2 - [The GPT-j backend by Abdeladim](https://github.com/abdeladim-s/pygptj)
|
||||
3 - [The GPT-j backend by marella](https://github.com/marella/gpt4all-j)
|
||||
4 - Hugging face's Transformers (under construction)
|
||||
|
||||
1- [The llama_cpp backend by Abdeladim](https://github.com/abdeladim-s/pyllamacpp)
|
||||
2- [The GPT-j backend by Abdeladim](https://github.com/abdeladim-s/pygptj)
|
||||
3- [The GPT-j backend by marella](https://github.com/marella/gpt4all-j)
|
||||
4- Hugging face's Transformers (under construction)
|
||||
|
||||
# Supported models
|
||||
You can also refuse to download the model during the install procedure and download it manually.
|
||||
|
37
app.py
37
app.py
@ -623,23 +623,26 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
||||
|
||||
models = []
|
||||
for model in model_list:
|
||||
filename = model['filename']
|
||||
server = model['server']
|
||||
filesize = model['filesize']
|
||||
if server.endswith("/"):
|
||||
path = f'{server}{filename}'
|
||||
else:
|
||||
path = f'{server}/{filename}'
|
||||
local_path = Path(f'./models/{self.config["backend"]}/{filename}')
|
||||
is_installed = local_path.exists()
|
||||
models.append({
|
||||
'title': model['filename'],
|
||||
'icon': '/icons/default.png', # Replace with the path to the model icon
|
||||
'description': model['description'],
|
||||
'isInstalled': is_installed,
|
||||
'path': path,
|
||||
'filesize': filesize,
|
||||
})
|
||||
try:
|
||||
filename = model['filename']
|
||||
server = model['server']
|
||||
filesize = model['filesize']
|
||||
if server.endswith("/"):
|
||||
path = f'{server}{filename}'
|
||||
else:
|
||||
path = f'{server}/{filename}'
|
||||
local_path = Path(f'./models/{self.config["backend"]}/{filename}')
|
||||
is_installed = local_path.exists()
|
||||
models.append({
|
||||
'title': model['filename'],
|
||||
'icon': '/icons/default.png', # Replace with the path to the model icon
|
||||
'description': model['description'],
|
||||
'isInstalled': is_installed,
|
||||
'path': path,
|
||||
'filesize': filesize,
|
||||
})
|
||||
except:
|
||||
print(f"Problem with model : {model}")
|
||||
return jsonify(models)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user