Spaces:
Running
Running
Update interface.py
Browse files- interface.py +43 -12
interface.py
CHANGED
@@ -15,16 +15,17 @@ css_customizado = """
|
|
15 |
--bg-primary: #212121;
|
16 |
--bg-secondary: #2f2f2f;
|
17 |
--bg-tertiary: #3c4043;
|
18 |
-
--bg-chat: #
|
19 |
-
--bg-user: #
|
20 |
--bg-assistant: #ffffff;
|
21 |
-
--border-color: #
|
22 |
--border-dark: #565869;
|
23 |
-
--text-primary: #
|
24 |
-
--text-secondary: #
|
25 |
--text-on-dark: #ffffff;
|
26 |
-
--
|
27 |
-
--accent
|
|
|
28 |
--shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
|
29 |
--shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
|
30 |
--radius: 12px;
|
@@ -161,7 +162,7 @@ body, .gradio-container {
|
|
161 |
.chat-header-title {
|
162 |
font-size: 18px;
|
163 |
font-weight: 600;
|
164 |
-
color: var(--text-
|
165 |
}
|
166 |
|
167 |
.mobile-menu-btn {
|
@@ -169,7 +170,7 @@ body, .gradio-container {
|
|
169 |
background: none !important;
|
170 |
border: none !important;
|
171 |
font-size: 20px !important;
|
172 |
-
color: var(--text-
|
173 |
cursor: pointer !important;
|
174 |
padding: 8px !important;
|
175 |
border-radius: 8px !important;
|
@@ -207,6 +208,7 @@ body, .gradio-container {
|
|
207 |
|
208 |
#chat .message.user {
|
209 |
background: var(--bg-user) !important;
|
|
|
210 |
}
|
211 |
|
212 |
#chat .message.bot {
|
@@ -239,10 +241,39 @@ body, .gradio-container {
|
|
239 |
|
240 |
#chat .message-text {
|
241 |
flex: 1 !important;
|
242 |
-
color: var(--text-
|
243 |
font-size: 15px !important;
|
244 |
line-height: 1.6 !important;
|
245 |
word-wrap: break-word !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
}
|
247 |
|
248 |
/* 脕rea de Input */
|
@@ -283,7 +314,7 @@ body, .gradio-container {
|
|
283 |
#entrada_usuario textarea {
|
284 |
background: transparent !important;
|
285 |
border: none !important;
|
286 |
-
color: var(--text-
|
287 |
font-size: 16px !important;
|
288 |
line-height: 1.5 !important;
|
289 |
resize: none !important;
|
@@ -294,7 +325,7 @@ body, .gradio-container {
|
|
294 |
}
|
295 |
|
296 |
#entrada_usuario textarea::placeholder {
|
297 |
-
color:
|
298 |
font-size: 16px !important;
|
299 |
}
|
300 |
|
|
|
15 |
--bg-primary: #212121;
|
16 |
--bg-secondary: #2f2f2f;
|
17 |
--bg-tertiary: #3c4043;
|
18 |
+
--bg-chat: #f8f9fa;
|
19 |
+
--bg-user: #e3f2fd;
|
20 |
--bg-assistant: #ffffff;
|
21 |
+
--border-color: #e0e0e0;
|
22 |
--border-dark: #565869;
|
23 |
+
--text-primary: #1a1a1a;
|
24 |
+
--text-secondary: #555555;
|
25 |
--text-on-dark: #ffffff;
|
26 |
+
--text-chat: #2d2d2d;
|
27 |
+
--accent: #1976d2;
|
28 |
+
--accent-hover: #1565c0;
|
29 |
--shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
|
30 |
--shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
|
31 |
--radius: 12px;
|
|
|
162 |
.chat-header-title {
|
163 |
font-size: 18px;
|
164 |
font-weight: 600;
|
165 |
+
color: var(--text-chat);
|
166 |
}
|
167 |
|
168 |
.mobile-menu-btn {
|
|
|
170 |
background: none !important;
|
171 |
border: none !important;
|
172 |
font-size: 20px !important;
|
173 |
+
color: var(--text-chat) !important;
|
174 |
cursor: pointer !important;
|
175 |
padding: 8px !important;
|
176 |
border-radius: 8px !important;
|
|
|
208 |
|
209 |
#chat .message.user {
|
210 |
background: var(--bg-user) !important;
|
211 |
+
border-bottom: 1px solid #bbdefb;
|
212 |
}
|
213 |
|
214 |
#chat .message.bot {
|
|
|
241 |
|
242 |
#chat .message-text {
|
243 |
flex: 1 !important;
|
244 |
+
color: var(--text-chat) !important;
|
245 |
font-size: 15px !important;
|
246 |
line-height: 1.6 !important;
|
247 |
word-wrap: break-word !important;
|
248 |
+
font-weight: 400 !important;
|
249 |
+
}
|
250 |
+
|
251 |
+
/* Melhor contraste para links e c贸digo */
|
252 |
+
#chat .message-text a {
|
253 |
+
color: var(--accent) !important;
|
254 |
+
text-decoration: underline !important;
|
255 |
+
}
|
256 |
+
|
257 |
+
#chat .message-text code {
|
258 |
+
background: #f5f5f5 !important;
|
259 |
+
color: #d73502 !important;
|
260 |
+
padding: 2px 4px !important;
|
261 |
+
border-radius: 4px !important;
|
262 |
+
font-family: 'Monaco', 'Consolas', monospace !important;
|
263 |
+
}
|
264 |
+
|
265 |
+
#chat .message-text pre {
|
266 |
+
background: #f8f8f8 !important;
|
267 |
+
color: var(--text-chat) !important;
|
268 |
+
border: 1px solid #e0e0e0 !important;
|
269 |
+
border-radius: 8px !important;
|
270 |
+
padding: 12px !important;
|
271 |
+
overflow-x: auto !important;
|
272 |
+
}
|
273 |
+
|
274 |
+
#chat .message-text strong {
|
275 |
+
color: var(--text-chat) !important;
|
276 |
+
font-weight: 600 !important;
|
277 |
}
|
278 |
|
279 |
/* 脕rea de Input */
|
|
|
314 |
#entrada_usuario textarea {
|
315 |
background: transparent !important;
|
316 |
border: none !important;
|
317 |
+
color: var(--text-chat) !important;
|
318 |
font-size: 16px !important;
|
319 |
line-height: 1.5 !important;
|
320 |
resize: none !important;
|
|
|
325 |
}
|
326 |
|
327 |
#entrada_usuario textarea::placeholder {
|
328 |
+
color: var(--text-secondary) !important;
|
329 |
font-size: 16px !important;
|
330 |
}
|
331 |
|