diff --git a/src/chatweb/__pycache__/chatweb.cpython-311.pyc b/src/chatweb/__pycache__/chatweb.cpython-311.pyc
index 6b06d3c..1fc642e 100644
Binary files a/src/chatweb/__pycache__/chatweb.cpython-311.pyc and b/src/chatweb/__pycache__/chatweb.cpython-311.pyc differ
diff --git a/src/chatweb/chat.html b/src/chatweb/chat.html
index 1509c2a..b80b036 100644
--- a/src/chatweb/chat.html
+++ b/src/chatweb/chat.html
@@ -41,18 +41,17 @@
if (message) {
$$("#messageInput").val('');
- $$("#hidep").append("{'role': 'user', 'content':'"+message+"'},")
+ $$("#hidep").append("{'role': 'user', 'content':'''"+message+"'''},")
allMessages=$$("#hidep").text()
- $$(".chat-content").append(`
`);
+ $$(".chat-content").append(``);
$$("#sendButton").prop("disabled", true);
// Show loading spinner
$$(".chat-content").append(' Loading...
');
$$.post("/chat", { messages: allMessages }, function(response){
if(response) {
- $$("#hidep").append("{'role': 'assistant', 'content':'"+response+"'},");
- response=response.replace("\n","
")
- $$(".chat-content").append(``);
+ $$("#hidep").append("{'role': 'assistant', 'content':'''"+response+"'''},");
+ $$(".chat-content").append(``);
$$("#sendButton").prop("disabled", false);
$$('#loadingSpinner').remove();
diff --git a/src/chatweb/chatweb.py b/src/chatweb/chatweb.py
index cfb63fb..2d75be3 100644
--- a/src/chatweb/chatweb.py
+++ b/src/chatweb/chatweb.py
@@ -39,7 +39,7 @@ class chat:
def POST(self):
i=web.input().messages
i=list(eval(i))
- print(i)
+
x=chatgpt(i)
print(x)
return x