1MR commited on
Commit
0d33a14
·
verified ·
1 Parent(s): 8fefb45

Update htmlTemplates.py

Browse files
Files changed (1) hide show
  1. htmlTemplates.py +14 -8
htmlTemplates.py CHANGED
@@ -26,19 +26,25 @@ css = '''
26
  '''
27
 
28
  bot_template = '''
29
- <div class="chat-message bot">
30
- <div class="avatar">
31
- <img src="https://i.imgur.com/AJ122mE.png" style="max-height: 78px; max-width: 78px; border-radius: 50%; object-fit: cover;">
 
 
 
 
32
  </div>
33
- <div class="message">{{MSG}}</div>
34
  </div>
35
  '''
36
 
37
  user_template = '''
38
- <div class="chat-message user">
39
- <div class="avatar">
40
- <img src="https://i.imgur.com/Jy4Pssw.png">
 
41
  </div>
42
- <div class="message">{{MSG}}</div>
 
 
43
  </div>
44
  '''
 
26
  '''
27
 
28
  bot_template = '''
29
+ <div style="display: flex; align-items: center; margin-bottom: 10px; background-color: #B22222; padding: 10px; border-radius: 10px; border: 1px solid #7A0000;">
30
+ <div style="flex-shrink: 0; margin-right: 10px;">
31
+ <img src="https://raw.githubusercontent.com/AalaaAyman24/Test/main/chatbot.png"
32
+ style="max-height: 50px; max-width: 50px; object-fit: cover;">
33
+ </div>
34
+ <div style="background-color: #B22222; color: white; padding: 10px; border-radius: 10px; max-width: 75%; word-wrap: break-word; overflow-wrap: break-word;">
35
+ {{MSG}}
36
  </div>
 
37
  </div>
38
  '''
39
 
40
  user_template = '''
41
+ <div style="display: flex; align-items: center; margin-bottom: 10px; justify-content: flex-end;">
42
+ <div style="flex-shrink: 0; margin-left: 10px;">
43
+ <img src="https://raw.githubusercontent.com/AalaaAyman24/Test/main/question.png"
44
+ style="max-height: 50px; max-width: 50px; border-radius: 50%; object-fit: cover;">
45
  </div>
46
+ <div style="background-color: #757882; color: white; padding: 10px; border-radius: 10px; max-width: 75%; word-wrap: break-word; overflow-wrap: break-word;">
47
+ {{MSG}}
48
+ </div>
49
  </div>
50
  '''