Rename a variable (for #59)
This commit is contained in:
parent
7e4c25691d
commit
d038963193
1 changed files with 3 additions and 3 deletions
|
@ -234,10 +234,10 @@ def generate_chat_html(history, name1, name2, character):
|
|||
img = f'<img src="file/{i}">'
|
||||
break
|
||||
|
||||
img_you = ''
|
||||
img_me = ''
|
||||
for i in ["img_me.png", "img_me.jpg", "img_me.jpeg"]:
|
||||
if Path(i).exists():
|
||||
img_you = f'<img src="file/{i}">'
|
||||
img_me = f'<img src="file/{i}">'
|
||||
break
|
||||
|
||||
for i,_row in enumerate(history[::-1]):
|
||||
|
@ -268,7 +268,7 @@ def generate_chat_html(history, name1, name2, character):
|
|||
output += f"""
|
||||
<div class="message">
|
||||
<div class="circle-you">
|
||||
{img_you}
|
||||
{img_me}
|
||||
</div>
|
||||
<div class="text">
|
||||
<div class="username">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue