docker compose bugfix

This commit is contained in:
ParisNeo 2023-04-24 22:09:40 +02:00
parent 79426ce9d0
commit 9fd814a3b3
2 changed files with 5 additions and 10 deletions

View File

@ -11,7 +11,7 @@ COPY ./pyGpt4All/api.py /srv/pyGpt4All/api.py
COPY ./pyGpt4All/db.py /srv/pyGpt4All/db.py
COPY ./pyGpt4All/config.py /srv/pyGpt4All/config.py
COPY ./pyGpt4All/extension.py /srv/pyGpt4All/extension.py
COPY ./pyGpt4All/backends /srv/pyGpt4All/backends
COPY ./backends /srv/backends
COPY ./static /srv/static
COPY ./templates /srv/templates

View File

@ -100,17 +100,12 @@ function update_main(){
}
else{
// For the other enrtries, these are just the text of the chatbot
for (const char of text) {
txt = bot_msg.hiddenElement.innerHTML;
if (char != '\f') {
txt += char
bot_msg.hiddenElement.innerHTML = txt;
bot_msg.messageTextElement.innerHTML = txt;
}
txt = bot_msg.hiddenElement.innerHTML;
txt += text
bot_msg.hiddenElement.innerHTML = txt;
bot_msg.messageTextElement.innerHTML = txt;
// scroll to bottom of chat window
chatWindow.scrollTop = chatWindow.scrollHeight;
}
}
}