diff --git a/modules/html_generator.py b/modules/html_generator.py index e61fc558..1f12d77a 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -268,29 +268,24 @@ def generate_instruct_html(history): for i, _row in enumerate(history): row = [convert_to_markdown_wrapped(entry, use_cache=i != len(history) - 1) for entry in _row] - if row[0]: # don't display empty user messages - output += f""" -
- """ + if row[0]: # Don't display empty user messages + output += ( + f' ' + ) - output += f""" - - """ + output += ( + f' ' + ) output += "" - return output @@ -298,44 +293,39 @@ def generate_cai_chat_html(history, name1, name2, style, character, reset_cache= output = f'