Spaces:
Sleeping
Sleeping
Update pages/Deep_Learning.py
Browse files- pages/Deep_Learning.py +59 -15
pages/Deep_Learning.py
CHANGED
|
@@ -10,33 +10,75 @@ os.environ['HF_TOKEN'] = hf
|
|
| 10 |
|
| 11 |
# Page config
|
| 12 |
st.set_page_config(page_title="Deep Learning Mentor Chat", layout="centered")
|
| 13 |
-
|
| 14 |
-
# Improved custom CSS
|
| 15 |
st.markdown("""
|
| 16 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
.main {
|
| 18 |
background: linear-gradient(to right, #1f4037, #99f2c8);
|
| 19 |
padding: 2rem;
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
|
|
|
| 22 |
.stButton>button {
|
| 23 |
-
background-color: #
|
| 24 |
color: white;
|
|
|
|
|
|
|
| 25 |
font-weight: 600;
|
|
|
|
| 26 |
border-radius: 10px;
|
| 27 |
-
padding: 0.6rem 1rem;
|
| 28 |
transition: all 0.3s ease;
|
| 29 |
-
border: 1px solid white;
|
| 30 |
}
|
|
|
|
| 31 |
.stButton>button:hover {
|
| 32 |
-
background-color: #
|
| 33 |
color: white;
|
| 34 |
border-color: #fff;
|
| 35 |
}
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
color: white;
|
| 38 |
-
|
| 39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
.chat-bubble-user {
|
| 41 |
background-color: #ffffff25;
|
| 42 |
padding: 0.75rem 1rem;
|
|
@@ -49,6 +91,7 @@ st.markdown("""
|
|
| 49 |
max-width: 90%;
|
| 50 |
align-self: flex-end;
|
| 51 |
}
|
|
|
|
| 52 |
.chat-bubble-bot {
|
| 53 |
background-color: #ffffff15;
|
| 54 |
padding: 0.75rem 1rem;
|
|
@@ -60,15 +103,16 @@ st.markdown("""
|
|
| 60 |
max-width: 90%;
|
| 61 |
align-self: flex-start;
|
| 62 |
}
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
| 68 |
}
|
| 69 |
</style>
|
| 70 |
""", unsafe_allow_html=True)
|
| 71 |
-
|
| 72 |
st.markdown("<h1>🤖 Deep Learning Mentor Chat</h1>", unsafe_allow_html=True)
|
| 73 |
st.markdown("<p>Learn Deep Learning with personalized AI mentorship</p>", unsafe_allow_html=True)
|
| 74 |
|
|
|
|
| 10 |
|
| 11 |
# Page config
|
| 12 |
st.set_page_config(page_title="Deep Learning Mentor Chat", layout="centered")
|
|
|
|
|
|
|
| 13 |
st.markdown("""
|
| 14 |
<style>
|
| 15 |
+
body {
|
| 16 |
+
background-color: #1e1e2f;
|
| 17 |
+
font-family: 'Segoe UI', sans-serif;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
.main {
|
| 21 |
background: linear-gradient(to right, #1f4037, #99f2c8);
|
| 22 |
padding: 2rem;
|
| 23 |
+
border-radius: 12px;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
h1, h2, h3, p, label {
|
| 27 |
+
color: white !important;
|
| 28 |
+
text-align: center;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.stTextInput>div>div>input {
|
| 32 |
+
border: 1px solid #ddd;
|
| 33 |
+
border-radius: 10px;
|
| 34 |
+
padding: 0.5rem;
|
| 35 |
+
font-size: 16px;
|
| 36 |
+
width: 100%;
|
| 37 |
}
|
| 38 |
+
|
| 39 |
.stButton>button {
|
| 40 |
+
background-color: #6a00ff;
|
| 41 |
color: white;
|
| 42 |
+
padding: 0.6rem 1.2rem;
|
| 43 |
+
font-size: 16px;
|
| 44 |
font-weight: 600;
|
| 45 |
+
border: 1px solid white;
|
| 46 |
border-radius: 10px;
|
|
|
|
| 47 |
transition: all 0.3s ease;
|
|
|
|
| 48 |
}
|
| 49 |
+
|
| 50 |
.stButton>button:hover {
|
| 51 |
+
background-color: #5300e8;
|
| 52 |
color: white;
|
| 53 |
border-color: #fff;
|
| 54 |
}
|
| 55 |
+
|
| 56 |
+
.chat-box {
|
| 57 |
+
background-color: #ffffff15;
|
| 58 |
+
border-radius: 12px;
|
| 59 |
+
padding: 1rem;
|
| 60 |
+
margin-bottom: 1rem;
|
| 61 |
color: white;
|
| 62 |
+
line-height: 1.6;
|
| 63 |
}
|
| 64 |
+
|
| 65 |
+
.user-msg {
|
| 66 |
+
color: #e0e0e0;
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.bot-msg {
|
| 71 |
+
color: #ffffff;
|
| 72 |
+
margin-top: 0.3rem;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
.chat-container {
|
| 76 |
+
display: flex;
|
| 77 |
+
flex-direction: column;
|
| 78 |
+
gap: 0.5rem;
|
| 79 |
+
margin-top: 2rem;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
.chat-bubble-user {
|
| 83 |
background-color: #ffffff25;
|
| 84 |
padding: 0.75rem 1rem;
|
|
|
|
| 91 |
max-width: 90%;
|
| 92 |
align-self: flex-end;
|
| 93 |
}
|
| 94 |
+
|
| 95 |
.chat-bubble-bot {
|
| 96 |
background-color: #ffffff15;
|
| 97 |
padding: 0.75rem 1rem;
|
|
|
|
| 103 |
max-width: 90%;
|
| 104 |
align-self: flex-start;
|
| 105 |
}
|
| 106 |
+
|
| 107 |
+
hr {
|
| 108 |
+
border: 0;
|
| 109 |
+
height: 1px;
|
| 110 |
+
background: #ffffff30;
|
| 111 |
+
margin: 1.5rem 0;
|
| 112 |
}
|
| 113 |
</style>
|
| 114 |
""", unsafe_allow_html=True)
|
| 115 |
+
|
| 116 |
st.markdown("<h1>🤖 Deep Learning Mentor Chat</h1>", unsafe_allow_html=True)
|
| 117 |
st.markdown("<p>Learn Deep Learning with personalized AI mentorship</p>", unsafe_allow_html=True)
|
| 118 |
|