mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-04-22 01:30:55 +00:00
upgraded
This commit is contained in:
parent
379f1c1390
commit
a9feb4e25b
9
app.py
9
app.py
@ -676,7 +676,13 @@ class LoLLMsWebUI(LoLLMsAPPI):
|
||||
|
||||
|
||||
def mount_personality(self):
|
||||
data = request.get_json()
|
||||
print("- Mounting personality")
|
||||
try:
|
||||
data = request.get_json()
|
||||
# Further processing of the data
|
||||
except Exception as e:
|
||||
print(f"Error occurred while parsing JSON: {e}")
|
||||
return
|
||||
language = data['language']
|
||||
category = data['category']
|
||||
name = data['name']
|
||||
@ -694,6 +700,7 @@ class LoLLMsWebUI(LoLLMsAPPI):
|
||||
return jsonify({"status": False, "error":"Personality not found"})
|
||||
|
||||
def unmount_personality(self):
|
||||
print("- Unmounting personality")
|
||||
data = request.get_json()
|
||||
language = data['language']
|
||||
category = data['category']
|
||||
|
Loading…
x
Reference in New Issue
Block a user