Spaces:
Build error

llmaidemo / htmlTemplates.py
santhoshkanna's picture
Upload 3 files
f9f7ddf verified
Raw History Blame Contribute Delete
784 Bytes
css = '''
<style>
.chat-message {
padding: 1.5rem; border-radius: 0.5rem; margin-bottom: 1rem; display: flex
}
.chat-message.user {
background-color: #e7f8ff;
float: right;
}
.chat-message.bot {
background-color: #f2f2f2;
float: left;
}
.chat-message .avatar {
width: 20%;
}
.chat-message .avatar img {
max-width: 78px;
max-height: 78px;
border-radius: 50%;
object-fit: cover;
}
.chat-message .message {
color: #000;
}
.stMarkdown {
width:auto !important;
}
'''
bot_template = '''
<div class="chat-message bot">
<div class="message">{{MSG}}</div>
</div>
'''
user_template = '''
<div class="chat-message user">
<div class="message">{{MSG}}</div>
</div>
'''
img_template = '''
<div class="">
<img src="{{MSG}}" width="200"/>
</div>
'''