Spaces:
Runtime error
Runtime error
update templates and styles css
Browse files- templatesStreamlit.py +24 -29
templatesStreamlit.py
CHANGED
@@ -30,14 +30,14 @@ css = '''
|
|
30 |
}
|
31 |
|
32 |
.skill {
|
33 |
-
background-color: rgb(
|
34 |
padding: 1rem 2rem;
|
35 |
border-radius: 2rem;
|
36 |
display: flex;
|
37 |
justify-content: space-between;
|
38 |
align-items: center;
|
39 |
margin-top: 2rem;
|
40 |
-
box-shadow: 0 4px 8px 0 rgba(255, 255, 255, 0.
|
41 |
transition: .3s;
|
42 |
}
|
43 |
|
@@ -48,7 +48,7 @@ css = '''
|
|
48 |
.skill-content {
|
49 |
display: flex;
|
50 |
align-items: center;
|
51 |
-
width:
|
52 |
}
|
53 |
|
54 |
.skill-img-box {
|
@@ -86,7 +86,17 @@ css = '''
|
|
86 |
top: 0;
|
87 |
left: 0;
|
88 |
height: 100%;
|
89 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
}
|
91 |
|
92 |
|
@@ -126,11 +136,13 @@ css = '''
|
|
126 |
.human-bubble {
|
127 |
background: linear-gradient(135deg, rgb(0, 178, 255) 0%, rgb(0, 106, 255) 100%);
|
128 |
color: white;
|
129 |
-
border-radius:
|
130 |
}
|
131 |
|
132 |
.chat-icon {
|
133 |
-
|
|
|
|
|
134 |
}
|
135 |
|
136 |
.container-neon {
|
@@ -147,7 +159,7 @@ css = '''
|
|
147 |
color: #fff;
|
148 |
letter-spacing: 4px;
|
149 |
text-decoration: none;
|
150 |
-
font-size:
|
151 |
overflow: hidden;
|
152 |
border-radius: 15px;
|
153 |
# background: #a945c7;
|
@@ -158,25 +170,18 @@ css = '''
|
|
158 |
|
159 |
.icon img {
|
160 |
margin-right: 1px; /* Ajusta el espacio entre la imagen y el texto según tus necesidades */
|
161 |
-
width:
|
162 |
-
height:
|
163 |
}
|
164 |
|
165 |
|
166 |
'''
|
167 |
|
168 |
-
|
169 |
-
<div class="chat-message bot">
|
170 |
-
<div class="avatar">
|
171 |
-
<img src="https://i.ibb.co/cN0nmSj/Screenshot-2023-05-28-at-02-37-21.png" style="max-height: 78px; max-width: 78px; border-radius: 50%; object-fit: cover;">
|
172 |
-
</div>
|
173 |
-
<div class="message">{{MSG}}</div>
|
174 |
-
</div>
|
175 |
-
'''
|
176 |
bot_template2 = '''
|
177 |
|
178 |
<div class="chat-row">
|
179 |
-
<img class="chat-icon" src="https://
|
180 |
<div class="chat-bubble ai-bubble">
|
181 |
​{{MSG}}
|
182 |
</div>
|
@@ -186,7 +191,7 @@ bot_template2 = '''
|
|
186 |
user_template2 = '''
|
187 |
|
188 |
<div class="chat-row row-reverse">
|
189 |
-
<img class="chat-icon" src="https://
|
190 |
<div class="chat-bubble human-bubble">
|
191 |
​{{MSG}}
|
192 |
</div>
|
@@ -194,13 +199,3 @@ user_template2 = '''
|
|
194 |
|
195 |
'''
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
user_template = '''
|
200 |
-
<div class="chat-message user">
|
201 |
-
<div class="avatar">
|
202 |
-
<img src="https://i.ibb.co/rdZC7LZ/Photo-logo-1.png">
|
203 |
-
</div>
|
204 |
-
<div class="message">{{MSG}}</div>
|
205 |
-
</div>
|
206 |
-
'''
|
|
|
30 |
}
|
31 |
|
32 |
.skill {
|
33 |
+
background-color: rgb(0, 0, 0);
|
34 |
padding: 1rem 2rem;
|
35 |
border-radius: 2rem;
|
36 |
display: flex;
|
37 |
justify-content: space-between;
|
38 |
align-items: center;
|
39 |
margin-top: 2rem;
|
40 |
+
box-shadow: 0 4px 8px 0 rgba(255, 255, 255, 0.5);
|
41 |
transition: .3s;
|
42 |
}
|
43 |
|
|
|
48 |
.skill-content {
|
49 |
display: flex;
|
50 |
align-items: center;
|
51 |
+
width: 100%;
|
52 |
}
|
53 |
|
54 |
.skill-img-box {
|
|
|
86 |
top: 0;
|
87 |
left: 0;
|
88 |
height: 100%;
|
89 |
+
background-color: #ffffffc7;
|
90 |
+
transition: width 1s ease; /* Transición de la anchura durante 1 segundo con efecto de suavizado */
|
91 |
+
}
|
92 |
+
|
93 |
+
.progress-1 {
|
94 |
+
width: 0%;
|
95 |
+
}
|
96 |
+
|
97 |
+
/* Pseudo-clase hover para demostrar la animación */
|
98 |
+
.skill-progress:hover .progress-1 {
|
99 |
+
width: 100%;
|
100 |
}
|
101 |
|
102 |
|
|
|
136 |
.human-bubble {
|
137 |
background: linear-gradient(135deg, rgb(0, 178, 255) 0%, rgb(0, 106, 255) 100%);
|
138 |
color: white;
|
139 |
+
border-radius: 10px;
|
140 |
}
|
141 |
|
142 |
.chat-icon {
|
143 |
+
width: 50px; /* Ajusta el ancho según tus necesidades */
|
144 |
+
height: 50px; /* Ajusta la altura según tus necesidades */
|
145 |
+
border-radius: 50px;
|
146 |
}
|
147 |
|
148 |
.container-neon {
|
|
|
159 |
color: #fff;
|
160 |
letter-spacing: 4px;
|
161 |
text-decoration: none;
|
162 |
+
font-size: 48px;
|
163 |
overflow: hidden;
|
164 |
border-radius: 15px;
|
165 |
# background: #a945c7;
|
|
|
170 |
|
171 |
.icon img {
|
172 |
margin-right: 1px; /* Ajusta el espacio entre la imagen y el texto según tus necesidades */
|
173 |
+
width: 50px; /* Ajusta el ancho de la imagen según tus necesidades */
|
174 |
+
height: 50px; /* Ajusta la altura de la imagen según tus necesidades */
|
175 |
}
|
176 |
|
177 |
|
178 |
'''
|
179 |
|
180 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
bot_template2 = '''
|
182 |
|
183 |
<div class="chat-row">
|
184 |
+
<img class="chat-icon" src="https://github.com/manolito99/DataScienceLLM/blob/main/static/bot.png?raw=true" width=45 height=45>
|
185 |
<div class="chat-bubble ai-bubble">
|
186 |
​{{MSG}}
|
187 |
</div>
|
|
|
191 |
user_template2 = '''
|
192 |
|
193 |
<div class="chat-row row-reverse">
|
194 |
+
<img class="chat-icon" src="https://github.com/manolito99/DataScienceLLM/blob/main/static/user.png?raw=true" width=45 height=45>
|
195 |
<div class="chat-bubble human-bubble">
|
196 |
​{{MSG}}
|
197 |
</div>
|
|
|
199 |
|
200 |
'''
|
201 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|