mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 10:46:27 +00:00
fixed settings bug
This commit is contained in:
parent
5eebffab04
commit
2e38b3b31d
4
app.py
4
app.py
@ -137,7 +137,7 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
|||||||
|
|
||||||
def list_backends(self):
|
def list_backends(self):
|
||||||
backends_dir = Path('./pyGpt4All/backends') # replace with the actual path to the models folder
|
backends_dir = Path('./pyGpt4All/backends') # replace with the actual path to the models folder
|
||||||
backends = [f.stem for f in backends_dir.glob('*.py') if f.name!="backend" and f.stem!="__init__"]
|
backends = [f.stem for f in backends_dir.glob('*.py') if f.stem!="backend" and f.stem!="__init__"]
|
||||||
return jsonify(backends)
|
return jsonify(backends)
|
||||||
|
|
||||||
|
|
||||||
@ -427,7 +427,7 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
|||||||
print(f"\trepeat_penalty:{self.config['repeat_penalty']}")
|
print(f"\trepeat_penalty:{self.config['repeat_penalty']}")
|
||||||
print(f"\trepeat_last_n:{self.config['repeat_last_n']}")
|
print(f"\trepeat_last_n:{self.config['repeat_last_n']}")
|
||||||
print("==============================================")
|
print("==============================================")
|
||||||
|
|
||||||
return jsonify({"status":"ok"})
|
return jsonify({"status":"ok"})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user