Rename a variable (for #59)

This commit is contained in:
oobabooga 2023-02-07 23:26:02 -03:00
parent 7e4c25691d
commit d038963193

View File

@ -234,10 +234,10 @@ def generate_chat_html(history, name1, name2, character):
img = f'<img src="file/{i}">' img = f'<img src="file/{i}">'
break break
img_you = '' img_me = ''
for i in ["img_me.png", "img_me.jpg", "img_me.jpeg"]: for i in ["img_me.png", "img_me.jpg", "img_me.jpeg"]:
if Path(i).exists(): if Path(i).exists():
img_you = f'<img src="file/{i}">' img_me = f'<img src="file/{i}">'
break break
for i,_row in enumerate(history[::-1]): for i,_row in enumerate(history[::-1]):
@ -268,7 +268,7 @@ def generate_chat_html(history, name1, name2, character):
output += f""" output += f"""
<div class="message"> <div class="message">
<div class="circle-you"> <div class="circle-you">
{img_you} {img_me}
</div> </div>
<div class="text"> <div class="text">
<div class="username"> <div class="username">