Spaces:
Sleeping
Sleeping
Komal-patra
commited on
Commit
•
d99d01c
1
Parent(s):
e52ed65
update
Browse files
app.py
CHANGED
@@ -36,23 +36,11 @@ custom_css = """
|
|
36 |
/* Response message */
|
37 |
.message.bot.svelte-1s78gfg.message-bubble-border {
|
38 |
border-color: #266B99;
|
39 |
-
display: flex;
|
40 |
-
align-items: center;
|
41 |
-
}
|
42 |
-
.message.bot.svelte-1s78gfg.message-bubble-border::before {
|
43 |
-
content: url('');
|
44 |
-
margin-right: 10px;
|
45 |
}
|
46 |
/* User message */
|
47 |
.message.user.svelte-1s78gfg.message-bubble-border {
|
48 |
background: #9DDDF9;
|
49 |
border-color: #9DDDF9;
|
50 |
-
display: flex;
|
51 |
-
align-items: center;
|
52 |
-
}
|
53 |
-
.message.user.svelte-1s78gfg.message-bubble-border::before {
|
54 |
-
content: url('https://path_to_user_icon.png');
|
55 |
-
margin-right: 10px;
|
56 |
}
|
57 |
/* For both user and response message as per the document */
|
58 |
span.md.svelte-8tpqd2.chatbot.prose p {
|
@@ -73,6 +61,23 @@ span.md.svelte-8tpqd2.chatbot.prose p {
|
|
73 |
background: #266B99;
|
74 |
color: white;
|
75 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
"""
|
77 |
|
78 |
# Gradio interface setup
|
|
|
36 |
/* Response message */
|
37 |
.message.bot.svelte-1s78gfg.message-bubble-border {
|
38 |
border-color: #266B99;
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
/* User message */
|
41 |
.message.user.svelte-1s78gfg.message-bubble-border {
|
42 |
background: #9DDDF9;
|
43 |
border-color: #9DDDF9;
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
}
|
45 |
/* For both user and response message as per the document */
|
46 |
span.md.svelte-8tpqd2.chatbot.prose p {
|
|
|
61 |
background: #266B99;
|
62 |
color: white;
|
63 |
}
|
64 |
+
/* Add icons to messages */
|
65 |
+
.message.user.svelte-1s78gfg {
|
66 |
+
display: flex;
|
67 |
+
align-items: center;
|
68 |
+
}
|
69 |
+
.message.user.svelte-1s78gfg:before {
|
70 |
+
content: url('file=Komal-patra/EU_AI_ACT/user icon.jpeg');
|
71 |
+
margin-right: 8px;
|
72 |
+
}
|
73 |
+
.message.bot.svelte-1s78gfg {
|
74 |
+
display: flex;
|
75 |
+
align-items: center;
|
76 |
+
}
|
77 |
+
.message.bot.svelte-1s78gfg:before {
|
78 |
+
content: url('file=Komal-patra/EU_AI_ACT/orcawise image.png');
|
79 |
+
margin-right: 8px;
|
80 |
+
}
|
81 |
"""
|
82 |
|
83 |
# Gradio interface setup
|