Siddu2004-2006 commited on
Commit
559188c
·
verified ·
1 Parent(s): 0c70946

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -14
app.py CHANGED
@@ -306,23 +306,29 @@ qa_chain = setup_qa_chain(vector_db, llm)
306
  custom_css = """
307
  /* Main container styling */
308
  .gradio-container {
309
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
310
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
311
- position: relative; /* Ensure positioning context for pseudo-element */
312
  }
313
 
314
- /* Add mindful emojis in the background */
315
  .gradio-container::before {
316
- content: "🌸 🧘 🌿";
 
 
 
317
  font-size: 100px;
318
  opacity: 0.1;
 
 
 
 
 
319
  position: absolute;
320
- top: 50%;
321
- left: 50%;
322
- transform: translate(-50%, -50%);
 
323
  z-index: -1;
324
- pointer-events: none;
325
- white-space: pre; /* Preserve spaces between emojis */
326
  }
327
 
328
  /* Header styling */
@@ -338,12 +344,12 @@ custom_css = """
338
 
339
  /* Chat interface styling */
340
  .chat-container {
341
- background: rgba(255, 255, 255, 0.95);
 
342
  border-radius: 20px;
343
  padding: 20px;
344
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
345
  backdrop-filter: blur(10px);
346
- border: 1px solid #E6E6FA; /* Changed to lavender */
347
  }
348
 
349
  /* Button styling */
@@ -365,12 +371,17 @@ custom_css = """
365
 
366
  /* Input field styling */
367
  .custom-input {
 
 
 
368
  border-radius: 15px;
369
- border: 2px solid #9370DB; /* Changed to purple */
370
  padding: 12px;
371
  font-size: 16px;
372
  transition: all 0.3s ease;
373
- background: rgba(255, 255, 255, 0.9);
 
 
 
374
  }
375
 
376
  .custom-input:focus {
@@ -380,7 +391,7 @@ custom_css = """
380
 
381
  /* Memory indicator styling */
382
  .memory-indicator {
383
- background: linear-gradient(45deg, #4ecdc4, #44a08d);
384
  color: white;
385
  padding: 10px 15px;
386
  border-radius: 20px;
 
306
  custom_css = """
307
  /* Main container styling */
308
  .gradio-container {
309
+ background: linear-gradient(135deg, #4B0082 0%, #9370DB 100%);
310
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
311
+ position: relative;
312
  }
313
 
 
314
  .gradio-container::before {
315
+ content: "😊 ❤️";
316
+ position: absolute;
317
+ top: 20%;
318
+ left: 10%;
319
  font-size: 100px;
320
  opacity: 0.1;
321
+ z-index: -1;
322
+ }
323
+
324
+ .gradio-container::after {
325
+ content: "☀️ 🌈";
326
  position: absolute;
327
+ bottom: 20%;
328
+ right: 10%;
329
+ font-size: 100px;
330
+ opacity: 0.1;
331
  z-index: -1;
 
 
332
  }
333
 
334
  /* Header styling */
 
344
 
345
  /* Chat interface styling */
346
  .chat-container {
347
+ background: rgba(72, 61, 139, 0.8);
348
+ border: none;
349
  border-radius: 20px;
350
  padding: 20px;
351
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
352
  backdrop-filter: blur(10px);
 
353
  }
354
 
355
  /* Button styling */
 
371
 
372
  /* Input field styling */
373
  .custom-input {
374
+ background: #2F4F4F;
375
+ color: white;
376
+ border: 2px solid #9370DB;
377
  border-radius: 15px;
 
378
  padding: 12px;
379
  font-size: 16px;
380
  transition: all 0.3s ease;
381
+ }
382
+
383
+ .custom-input::placeholder {
384
+ color: #A9A9A9;
385
  }
386
 
387
  .custom-input:focus {
 
391
 
392
  /* Memory indicator styling */
393
  .memory-indicator {
394
+ background: #AFEEEE;
395
  color: white;
396
  padding: 10px 15px;
397
  border-radius: 20px;