diff --git a/modules/text_generation.py b/modules/text_generation.py index bc260d83..1e4f9cb8 100644 --- a/modules/text_generation.py +++ b/modules/text_generation.py @@ -167,7 +167,7 @@ def _generate_reply(question, state, eos_token=None, stopping_strings=None, is_c if generate_func is None: if shared.model_name == 'None' or shared.model is None: logger.error("No model is loaded! Select one in the Model tab.") - yield question + yield '' return if shared.model_type in ['rwkv', 'llamacpp']: