aesthetics

This commit is contained in:
saloui 2023-05-22 12:07:55 +02:00
parent a3926a05fe
commit 1b268a8897

6
app.py
View File

@ -513,9 +513,9 @@ class Gpt4AllWebUI(GPT4AllAPI):
return "title renamed successfully" return "title renamed successfully"
def load_discussion(self): def load_discussion(self):
print("Loading discussion") print("- Loading discussion")
data = request.get_json() data = request.get_json()
print("Recovered json data") print(" Recovered json data")
if "id" in data: if "id" in data:
discussion_id = data["id"] discussion_id = data["id"]
self.current_discussion = Discussion(discussion_id, self.db) self.current_discussion = Discussion(discussion_id, self.db)
@ -525,7 +525,7 @@ class Gpt4AllWebUI(GPT4AllAPI):
self.current_discussion = Discussion(discussion_id, self.db) self.current_discussion = Discussion(discussion_id, self.db)
else: else:
self.current_discussion = self.db.create_discussion() self.current_discussion = self.db.create_discussion()
print(f"Discussion id :{discussion_id}") print(f" Discussion id :{discussion_id}")
messages = self.current_discussion.get_messages() messages = self.current_discussion.get_messages()