Update app.py
Browse files
app.py
CHANGED
@@ -203,17 +203,17 @@ custom_css = """
|
|
203 |
/* General body styles */
|
204 |
.gradio-container {
|
205 |
font-family: 'Arial', sans-serif;
|
206 |
-
background-color: #
|
207 |
-
color: #
|
208 |
}
|
209 |
/* Header styles */
|
210 |
.gradio-header {
|
211 |
-
background
|
212 |
color: white;
|
213 |
padding: 20px;
|
214 |
text-align: center;
|
215 |
border-radius: 8px;
|
216 |
-
box-shadow: 0 4px
|
217 |
animation: fadeIn 1s ease-out;
|
218 |
}
|
219 |
.gradio-header h1 {
|
@@ -228,28 +228,23 @@ custom_css = """
|
|
228 |
background-color: #fff;
|
229 |
border-radius: 10px;
|
230 |
padding: 20px;
|
231 |
-
box-shadow: 0
|
232 |
-
|
233 |
-
overflow-y: auto;
|
234 |
-
animation: fadeIn 2s ease-out;
|
235 |
}
|
236 |
/* Input field styles */
|
237 |
.gradio-textbox, .gradio-dropdown, .gradio-image, .gradio-audio, .gradio-file, .gradio-slider {
|
238 |
border-radius: 8px;
|
239 |
-
border: 2px solid #
|
240 |
-
|
241 |
-
margin-bottom: 10px;
|
242 |
-
width: 100%;
|
243 |
-
font-size: 1rem;
|
244 |
-
transition: all 0.3s ease;
|
245 |
}
|
246 |
.gradio-textbox:focus, .gradio-dropdown:focus, .gradio-image:focus, .gradio-audio:focus, .gradio-file:focus, .gradio-slider:focus {
|
247 |
-
border-color: #
|
|
|
248 |
}
|
249 |
/* Button styles */
|
250 |
/* Send Button: Sky Blue */
|
251 |
#submit-btn {
|
252 |
-
background
|
253 |
color: white;
|
254 |
border: none;
|
255 |
border-radius: 8px;
|
@@ -263,13 +258,14 @@ custom_css = """
|
|
263 |
margin-top: 10px;
|
264 |
}
|
265 |
#submit-btn:hover {
|
266 |
-
background
|
|
|
267 |
}
|
268 |
#submit-btn:active {
|
269 |
transform: scale(0.95);
|
270 |
}
|
271 |
#clear-history {
|
272 |
-
|
273 |
color: white;
|
274 |
border: none;
|
275 |
border-radius: 8px;
|
@@ -278,9 +274,11 @@ custom_css = """
|
|
278 |
cursor: pointer;
|
279 |
transition: all 0.3s ease;
|
280 |
margin-top: 10px;
|
|
|
281 |
}
|
282 |
#clear-history:hover {
|
283 |
-
background-color: #
|
|
|
284 |
}
|
285 |
#clear-history:active {
|
286 |
transform: scale(0.95);
|
@@ -293,7 +291,7 @@ custom_css = """
|
|
293 |
margin-bottom: 20px;
|
294 |
}
|
295 |
.input-type-btn {
|
296 |
-
background-color: #
|
297 |
color: white;
|
298 |
border: none;
|
299 |
border-radius: 8px;
|
@@ -303,17 +301,17 @@ custom_css = """
|
|
303 |
transition: all 0.3s ease;
|
304 |
}
|
305 |
.input-type-btn.selected {
|
306 |
-
background-color: #
|
307 |
}
|
308 |
.input-type-btn:hover {
|
309 |
-
background-color: #
|
310 |
}
|
311 |
/* Chat history styles */
|
312 |
.gradio-chatbot .message {
|
313 |
margin-bottom: 10px;
|
314 |
}
|
315 |
.gradio-chatbot .user {
|
316 |
-
background-color: #
|
317 |
color: white;
|
318 |
padding: 10px;
|
319 |
border-radius: 12px;
|
@@ -321,8 +319,8 @@ custom_css = """
|
|
321 |
animation: slideInUser 0.5s ease-out;
|
322 |
}
|
323 |
.gradio-chatbot .assistant {
|
324 |
-
background-color: #
|
325 |
-
color: #
|
326 |
padding: 10px;
|
327 |
border-radius: 12px;
|
328 |
max-width: 70%;
|
|
|
203 |
/* General body styles */
|
204 |
.gradio-container {
|
205 |
font-family: 'Arial', sans-serif;
|
206 |
+
background-color: #f0f4f8; /* Lighter blue-gray background */
|
207 |
+
color: #2d3748;;
|
208 |
}
|
209 |
/* Header styles */
|
210 |
.gradio-header {
|
211 |
+
background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%); /* Purple gradient */
|
212 |
color: white;
|
213 |
padding: 20px;
|
214 |
text-align: center;
|
215 |
border-radius: 8px;
|
216 |
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
217 |
animation: fadeIn 1s ease-out;
|
218 |
}
|
219 |
.gradio-header h1 {
|
|
|
228 |
background-color: #fff;
|
229 |
border-radius: 10px;
|
230 |
padding: 20px;
|
231 |
+
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
|
232 |
+
border-left: 4px solid #4a00e0; /* Accent border */
|
|
|
|
|
233 |
}
|
234 |
/* Input field styles */
|
235 |
.gradio-textbox, .gradio-dropdown, .gradio-image, .gradio-audio, .gradio-file, .gradio-slider {
|
236 |
border-radius: 8px;
|
237 |
+
border: 2px solid #e2e8f0;
|
238 |
+
background-color: #f8fafc;
|
|
|
|
|
|
|
|
|
239 |
}
|
240 |
.gradio-textbox:focus, .gradio-dropdown:focus, .gradio-image:focus, .gradio-audio:focus, .gradio-file:focus, .gradio-slider:focus {
|
241 |
+
border-color: #8e2de2;
|
242 |
+
box-shadow: 0 0 0 3px rgba(142, 45, 226, 0.2);
|
243 |
}
|
244 |
/* Button styles */
|
245 |
/* Send Button: Sky Blue */
|
246 |
#submit-btn {
|
247 |
+
background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%); /* Purple gradient */
|
248 |
color: white;
|
249 |
border: none;
|
250 |
border-radius: 8px;
|
|
|
258 |
margin-top: 10px;
|
259 |
}
|
260 |
#submit-btn:hover {
|
261 |
+
background: linear-gradient(135deg, #5b10f1 0%, #9f3ef3 100%); /* Slightly lighter */
|
262 |
+
box-shadow: 0 6px 8px rgba(74, 0, 224, 0.4);
|
263 |
}
|
264 |
#submit-btn:active {
|
265 |
transform: scale(0.95);
|
266 |
}
|
267 |
#clear-history {
|
268 |
+
ackground-color: #e53e3e; /* Red */
|
269 |
color: white;
|
270 |
border: none;
|
271 |
border-radius: 8px;
|
|
|
274 |
cursor: pointer;
|
275 |
transition: all 0.3s ease;
|
276 |
margin-top: 10px;
|
277 |
+
box-shadow: 0 4px 6px rgba(229, 62, 62, 0.3);
|
278 |
}
|
279 |
#clear-history:hover {
|
280 |
+
background-color: #f56565; /* Lighter red */
|
281 |
+
box-shadow: 0 6px 8px rgba(229, 62, 62, 0.4);
|
282 |
}
|
283 |
#clear-history:active {
|
284 |
transform: scale(0.95);
|
|
|
291 |
margin-bottom: 20px;
|
292 |
}
|
293 |
.input-type-btn {
|
294 |
+
background-color: #718096; /* Slate gray */
|
295 |
color: white;
|
296 |
border: none;
|
297 |
border-radius: 8px;
|
|
|
301 |
transition: all 0.3s ease;
|
302 |
}
|
303 |
.input-type-btn.selected {
|
304 |
+
background-color: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%); /* Purple gradient */
|
305 |
}
|
306 |
.input-type-btn:hover {
|
307 |
+
background-color: #4a5568; /* Darker slate */
|
308 |
}
|
309 |
/* Chat history styles */
|
310 |
.gradio-chatbot .message {
|
311 |
margin-bottom: 10px;
|
312 |
}
|
313 |
.gradio-chatbot .user {
|
314 |
+
background-color: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%); /* Purple gradient */
|
315 |
color: white;
|
316 |
padding: 10px;
|
317 |
border-radius: 12px;
|
|
|
319 |
animation: slideInUser 0.5s ease-out;
|
320 |
}
|
321 |
.gradio-chatbot .assistant {
|
322 |
+
background-color: #f0f4f8; /* Light blue-gray */
|
323 |
+
color: #2d3748;
|
324 |
padding: 10px;
|
325 |
border-radius: 12px;
|
326 |
max-width: 70%;
|