mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-11 15:32:41 +00:00
commit
0885eb9b85
4
app.py
4
app.py
@ -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
4
web/dist/index.html
vendored
@ -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>
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user