mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-19 03:06:37 +00:00
bugfix
This commit is contained in:
parent
fff4daf67e
commit
84bed4806e
@ -488,14 +488,14 @@ class LoLLMsServer:
|
|||||||
seed = parameters["seed"]
|
seed = parameters["seed"]
|
||||||
)
|
)
|
||||||
ASCIIColors.success(f"\ndone")
|
ASCIIColors.success(f"\ndone")
|
||||||
except Exception as ex:
|
|
||||||
self.socketio.emit('generation_error', {'error': str(ex)}, room=client_id)
|
|
||||||
ASCIIColors.error(f"\ndone")
|
|
||||||
if client_id in self.clients:
|
if client_id in self.clients:
|
||||||
if not self.clients[client_id]["requested_stop"]:
|
if not self.clients[client_id]["requested_stop"]:
|
||||||
# Emit the generated text to the client
|
# Emit the generated text to the client
|
||||||
self.socketio.emit('text_generated', {'text': generated_text}, room=client_id)
|
self.socketio.emit('text_generated', {'text': generated_text}, room=client_id)
|
||||||
self.socketio.sleep(0)
|
self.socketio.sleep(0)
|
||||||
|
except Exception as ex:
|
||||||
|
self.socketio.emit('generation_error', {'error': str(ex)}, room=client_id)
|
||||||
|
ASCIIColors.error(f"\ndone")
|
||||||
self.is_ready = True
|
self.is_ready = True
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user