Merge pull request #287 from ParisNeo/main

sync
This commit is contained in:
Saifeddine ALOUI 2023-06-14 10:27:30 +02:00 committed by GitHub
commit 0885eb9b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

4
app.py
View File

@ -733,7 +733,7 @@ class LoLLMsWebUI(LoLLMsAPPI):
return
language = data['language']
category = data['category']
name = data['name']
name = data['folder']
package_path = f"{language}/{category}/{name}"
package_full_path = self.lollms_paths.personalities_zoo_path/package_path
@ -802,7 +802,7 @@ class LoLLMsWebUI(LoLLMsAPPI):
"active_personality_id":self.config["active_personality_id"]
})
else:
ASCIIColors.error(f"nok : Personality not found @ {pth}")
ASCIIColors.error(f"nok : personality id out of bounds @ {id} >= {len(self.config['personalities'])}")
return jsonify({"status": False, "error":"Invalid ID"})

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GPT4All - WEBUI</title>
<script type="module" crossorigin src="/assets/index-15f764ca.js"></script>
<link rel="stylesheet" href="/assets/index-b23f444b.css">
<script type="module" crossorigin src="/assets/index-5f487c0a.js"></script>
<link rel="stylesheet" href="/assets/index-3a0806cb.css">
</head>
<body>
<div id="app"></div>

View File

@ -1295,7 +1295,7 @@ export default {
const obj = {
language: pers.language,
category: pers.category,
name: pers.name
folder: pers.folder
}
const res = await axios.post('/mount_personality', obj);