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 return
language = data['language'] language = data['language']
category = data['category'] category = data['category']
name = data['name'] name = data['folder']
package_path = f"{language}/{category}/{name}" package_path = f"{language}/{category}/{name}"
package_full_path = self.lollms_paths.personalities_zoo_path/package_path 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"] "active_personality_id":self.config["active_personality_id"]
}) })
else: 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"}) 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"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GPT4All - WEBUI</title> <title>GPT4All - WEBUI</title>
<script type="module" crossorigin src="/assets/index-15f764ca.js"></script> <script type="module" crossorigin src="/assets/index-5f487c0a.js"></script>
<link rel="stylesheet" href="/assets/index-b23f444b.css"> <link rel="stylesheet" href="/assets/index-3a0806cb.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

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