Allow jpg profile images
This commit is contained in:
parent
ada2e556d0
commit
027c3dd27d
3 changed files with 6 additions and 2 deletions
|
@ -216,6 +216,10 @@ def generate_chat_html(history, name1, name2):
|
|||
output += f'<style>{css}</style><div class="chat" id="chat">'
|
||||
if Path("profile.png").exists():
|
||||
img = '<img src="file/profile.png">'
|
||||
elif Path("profile.jpg").exists():
|
||||
img = '<img src="file/profile.jpg">'
|
||||
elif Path("profile.jpeg").exists():
|
||||
img = '<img src="file/profile.jpeg">'
|
||||
else:
|
||||
img = ''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue