readpdf / htmlTemplates.py
rengaraj's picture
Create htmlTemplates.py
7e99a3d verified
raw
history blame
856 Bytes
css = '''
<style>
.chat-message {
padding: 1.5rem; border-radius: 0.5rem; margin-bottom: 1rem; display: flex
}
.chat-message.user {
background-color: #D0E0E3
}
.chat-message.bot {
background-color: #B6D7A8
}
.chat-message .avatar {
width: 100%;
}
.chat-message .avatar img {
max-width: 78px;
max-height: 78px;
border-radius: 50%;
object-fit: cover;
}
.chat-message .message {
width: 100%;
padding: 0 1.5rem;
color: #000;
}
'''
bot_template = '''
<div class="chat-message bot">
<div class="avatar">
<img src="https://i.ibb.co/cN0nmSj/Screenshot-2023-05-28-at-02-37-21.png"
</div>
<div class="message">{{MSG}}</div>
</div>
'''
user_template = '''
<div class="chat-message user">
<div class="avatar">
<img src="/renga_profile.jpg">
</div>
<div class="message">{{MSG}}</div>
</div>
'''