Allow jpg profile images

This commit is contained in:
oobabooga 2023-01-15 15:45:25 -03:00
parent ada2e556d0
commit 027c3dd27d
3 changed files with 6 additions and 2 deletions

View file

@ -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 = ''