upgraded install

This commit is contained in:
saloui
2023-05-22 12:27:45 +02:00
parent 1b268a8897
commit c5d3f92ba8
3 changed files with 8 additions and 5 deletions

View File

@ -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)