mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Rename a variable (for #59)
This commit is contained in:
parent
7e4c25691d
commit
d038963193
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user