Spaces:
Sleeping
Sleeping
Upload htmlTemplates.py
Browse files- htmlTemplates.py +23 -0
htmlTemplates.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# htmlTemplates.py
|
| 2 |
+
|
| 3 |
+
css = """
|
| 4 |
+
<style>
|
| 5 |
+
.chat-bubble {
|
| 6 |
+
border-radius: 10px;
|
| 7 |
+
padding: 10px;
|
| 8 |
+
margin: 10px 0;
|
| 9 |
+
}
|
| 10 |
+
</style>
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
user_template = """
|
| 14 |
+
<div class="chat-bubble" style="background-color:#DCF8C6;">
|
| 15 |
+
<b>User:</b> {{MSG}}
|
| 16 |
+
</div>
|
| 17 |
+
"""
|
| 18 |
+
|
| 19 |
+
bot_template = """
|
| 20 |
+
<div class="chat-bubble" style="background-color:#F1F0F0;">
|
| 21 |
+
<b>Bot:</b> {{MSG}}
|
| 22 |
+
</div>
|
| 23 |
+
"""
|