shukdevdatta123 commited on
Commit
380b344
·
verified ·
1 Parent(s): 6561c39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -25
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: #f8f9fa;
207
- color: #333;
208
  }
209
  /* Header styles */
210
  .gradio-header {
211
- background-color: #007bff;
212
  color: white;
213
  padding: 20px;
214
  text-align: center;
215
  border-radius: 8px;
216
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
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 4px 8px rgba(0, 0, 0, 0.1);
232
- max-height: 500px;
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 #ccc;
240
- padding: 10px;
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: #007bff;
 
248
  }
249
  /* Button styles */
250
  /* Send Button: Sky Blue */
251
  #submit-btn {
252
- background-color: #00aaff; /* Sky blue */
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-color: #0099cc; /* Slightly darker blue */
 
267
  }
268
  #submit-btn:active {
269
  transform: scale(0.95);
270
  }
271
  #clear-history {
272
- background-color: #f04e4e; /* Slightly Darker red */
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: #f5a4a4; /* Light red */
 
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: #6c757d;
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: #007bff;
307
  }
308
  .input-type-btn:hover {
309
- background-color: #5a6268;
310
  }
311
  /* Chat history styles */
312
  .gradio-chatbot .message {
313
  margin-bottom: 10px;
314
  }
315
  .gradio-chatbot .user {
316
- background-color: #007bff;
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: #f1f1f1;
325
- color: #333;
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%;