addition to skip output modifier if ppl_logits_processor == None so new chat can be created when no model loaded

This commit is contained in:
KT313 2024-10-23 08:02:30 +02:00 committed by GitHub
parent c61e012d21
commit fcd72afe56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ def output_modifier(text):
global ppl_logits_processor
# t0 = time.time()
if not params['active']:
if not params['active'] or ppl_logits_processor == None:
return text
# TODO: It's probably more efficient to do this above rather than modifying all these lists