From a9feb4e25bebfbc5db03c46c3ebed033c992fc7a Mon Sep 17 00:00:00 2001 From: saloui Date: Fri, 9 Jun 2023 13:55:45 +0200 Subject: [PATCH] upgraded --- app.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 75c2dbe6..f22069b7 100644 --- a/app.py +++ b/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']