mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-06-22 00:41:54 +00:00
upgraded install
This commit is contained in:
@ -717,10 +717,7 @@ class GPT4AllAPI():
|
||||
self.process.generate(self.discussion_messages, self.current_message, message_id, n_predict = self.config['n_predict'])
|
||||
self.process.started_queue.get()
|
||||
while(self.process.is_generating.value): # Simulating other commands being issued
|
||||
chunk = ""
|
||||
while not self.process.generation_queue.empty():
|
||||
chk, tok, message_type = self.process.generation_queue.get()
|
||||
chunk += chk
|
||||
chunk, tok, message_type = self.process.generation_queue.get()
|
||||
if chunk!="":
|
||||
self.process_chunk(chunk)
|
||||
|
||||
|
Reference in New Issue
Block a user