-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.py
57 lines (55 loc) · 1.59 KB
/
style.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Set the page config
st.set_page_config(page_title="ShauryaNova🤖", page_icon="🤖", layout="wide")
# Add some custom CSS to style the chat messages
st.markdown("""
<style>
.chat-container {
max-width: 700px;
margin: auto;
}
.chat-message {
padding: 10px;
border-radius: 10px;
margin: 10px 0;
display: inline-block;
max-width: 80%;
}
.user-message {
background-color: black;
text-align: right;
}
.bot-message {
background-color: black;
text-align: left;
}
.input-container {
display: flex;
justify-content: center;
width: 100%;
position: fixed;
bottom: 0;
padding: 20px;
background-color: black;
}
.input-container input {
width: 80%;
padding: 10px;
border-radius: 10px;
border: 1px solid #ccc;
}
.input-container button {
padding: 10px 20px;
border-radius: 10px;
border: none;
background-color: #4CAF50;
color: white;
margin-left: 10px;
cursor: pointer;
}
.input-container button:hover {
background-color: #45a049;
}
</style>
""", unsafe_allow_html=True)
st.title(" ShauryaNova🤖")
st.write(" Hello! I'm your friendly Groq chatbot.Let's start the talk ...")