Update html_generator.py

This commit is contained in:
oobabooga 2023-03-24 17:18:27 -03:00 committed by GitHub
parent ffb0187e83
commit 6e1b16c2aa
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,8 +142,9 @@ def generate_chat_html(history, name1, name2, character):
</div>
"""
if not row[0]: # don't display empty user messages
if len(row[0]) == 0: # don't display empty user messages
continue
output += f"""
<div class="message">
<div class="circle-you">