mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-24 13:28:59 +01:00
Fix return message when no model is loaded
This commit is contained in:
parent
f27135bdd3
commit
9ee1e37121
@ -167,7 +167,7 @@ def _generate_reply(question, state, eos_token=None, stopping_strings=None, is_c
|
|||||||
if generate_func is None:
|
if generate_func is None:
|
||||||
if shared.model_name == 'None' or shared.model is None:
|
if shared.model_name == 'None' or shared.model is None:
|
||||||
logger.error("No model is loaded! Select one in the Model tab.")
|
logger.error("No model is loaded! Select one in the Model tab.")
|
||||||
yield question
|
yield ''
|
||||||
return
|
return
|
||||||
|
|
||||||
if shared.model_type in ['rwkv', 'llamacpp']:
|
if shared.model_type in ['rwkv', 'llamacpp']:
|
||||||
|
Loading…
Reference in New Issue
Block a user