From 71150f1e34f928ae4b2990da54418ea37e44c315 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Mon, 17 Apr 2023 02:31:43 +0200 Subject: [PATCH] upgraded --- app.py | 3 ++- scripts/convert model.bat | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index f882b7df..c5157955 100644 --- a/app.py +++ b/app.py @@ -213,7 +213,7 @@ class Gpt4AllWebUI(GPT4AllAPI): try: while not self.text_queue.empty(): value = self.text_queue.get(False) - yield value.replace("\n","
") + yield value#.replace("\n","
") except : time.sleep(0.1) @@ -221,6 +221,7 @@ class Gpt4AllWebUI(GPT4AllAPI): self.full_message_list.append(self.bot_says) bot_says = markdown.markdown(self.bot_says) + yield bot_says return bot_says def bot(self): diff --git a/scripts/convert model.bat b/scripts/convert model.bat index bab01609..4ad372f0 100644 --- a/scripts/convert model.bat +++ b/scripts/convert model.bat @@ -1,7 +1,7 @@ @echo off @echo off -set filename=../models/$1 -set newname=../models/$1.original +set filename=../models/%1 +set newname=../models/%1.original echo %modelPath% echo Converting the model to the new format...