mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-31 08:25:24 +00:00
bugfix
This commit is contained in:
parent
b39b52a9b5
commit
26b5f9e52c
@ -313,7 +313,7 @@ class ModelProcess:
|
|||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
# Stream the generated text to the main process
|
# Stream the generated text to the main process
|
||||||
self.generation_queue.put((text,self.id))
|
self.generation_queue.put((text,self.id, 0))
|
||||||
self._check_set_config_queue()
|
self._check_set_config_queue()
|
||||||
self._check_cancel_queue()
|
self._check_cancel_queue()
|
||||||
self._check_clear_queue()
|
self._check_clear_queue()
|
||||||
@ -719,7 +719,7 @@ class GPT4AllAPI():
|
|||||||
while(self.process.is_generating.value): # Simulating other commands being issued
|
while(self.process.is_generating.value): # Simulating other commands being issued
|
||||||
chunk = ""
|
chunk = ""
|
||||||
while not self.process.generation_queue.empty():
|
while not self.process.generation_queue.empty():
|
||||||
chk, tok = self.process.generation_queue.get()
|
chk, tok, message_type = self.process.generation_queue.get()
|
||||||
chunk += chk
|
chunk += chk
|
||||||
if chunk!="":
|
if chunk!="":
|
||||||
self.process_chunk(chunk)
|
self.process_chunk(chunk)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user