Saicharan21 commited on
Commit
f2521ea
·
verified ·
1 Parent(s): c99edcb

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +27 -27
app.py CHANGED
@@ -18,8 +18,8 @@ CSS = """
18
  * { font-family: 'Inter', sans-serif !important; box-sizing: border-box; }
19
 
20
  body, .gradio-container {
21
- background: #050d1a !important;
22
- color: #ffffff !important;
23
  }
24
 
25
  .gradio-container {
@@ -30,7 +30,7 @@ body, .gradio-container {
30
 
31
  /* HEADER */
32
  .main-header {
33
- background: linear-gradient(135deg, #0d1b3e 0%, #1a0533 50%, #0d1b3e 100%);
34
  border-bottom: 3px solid #e63946;
35
  padding: 30px 20px;
36
  text-align: center;
@@ -39,8 +39,8 @@ body, .gradio-container {
39
 
40
  /* TABS - ALWAYS VISIBLE */
41
  .tab-nav {
42
- background: #0d1b3e !important;
43
- border-bottom: 2px solid #1e3a6e !important;
44
  padding: 0 10px !important;
45
  display: flex !important;
46
  gap: 5px !important;
@@ -48,9 +48,9 @@ body, .gradio-container {
48
  }
49
 
50
  .tab-nav button {
51
- background: #132340 !important;
52
- color: #a0b3d6 !important;
53
- border: 1px solid #1e3a6e !important;
54
  border-radius: 8px 8px 0 0 !important;
55
  padding: 12px 20px !important;
56
  font-size: 0.9em !important;
@@ -62,8 +62,8 @@ body, .gradio-container {
62
  }
63
 
64
  .tab-nav button:hover {
65
- background: #1e3a6e !important;
66
- color: #ffffff !important;
67
  border-color: #4361ee !important;
68
  }
69
 
@@ -76,17 +76,17 @@ body, .gradio-container {
76
 
77
  /* CONTENT AREA */
78
  .tabitem {
79
- background: #0a1628 !important;
80
  padding: 20px !important;
81
- border: 1px solid #1e3a6e !important;
82
  border-top: none !important;
83
  }
84
 
85
  /* INPUTS */
86
  textarea, input[type=number], input[type=text] {
87
- background: #132340 !important;
88
- color: #ffffff !important;
89
- border: 1px solid #2d4a8a !important;
90
  border-radius: 8px !important;
91
  font-size: 0.95em !important;
92
  }
@@ -97,7 +97,7 @@ textarea:focus, input:focus {
97
  }
98
 
99
  textarea::placeholder {
100
- color: #5a7aaa !important;
101
  }
102
 
103
  /* BUTTONS */
@@ -119,16 +119,16 @@ button.primary:hover {
119
  }
120
 
121
  button.secondary {
122
- background: #1d3461 !important;
123
- color: #a0b3d6 !important;
124
- border: 1px solid #2d4a8a !important;
125
  border-radius: 8px !important;
126
  font-weight: 600 !important;
127
  }
128
 
129
  /* LABELS */
130
  label span, label, .label-wrap span {
131
- color: #7eb8f7 !important;
132
  font-weight: 600 !important;
133
  font-size: 0.85em !important;
134
  text-transform: uppercase !important;
@@ -153,16 +153,16 @@ label span, label, .label-wrap span {
153
  }
154
 
155
  .message.bot {
156
- background: #132340 !important;
157
- color: #e2e8f0 !important;
158
- border: 1px solid #2d4a8a !important;
159
  border-radius: 12px 12px 12px 4px !important;
160
  }
161
 
162
  /* RESULT BOXES */
163
  .gr-box, .block {
164
- background: #0d1b3e !important;
165
- border: 1px solid #1e3a6e !important;
166
  border-radius: 12px !important;
167
  }
168
 
@@ -181,8 +181,8 @@ input[type=number] {
181
 
182
  /* SCROLLBAR */
183
  ::-webkit-scrollbar { width: 6px; }
184
- ::-webkit-scrollbar-track { background: #0a1628; }
185
- ::-webkit-scrollbar-thumb { background: #2d4a8a; border-radius: 3px; }
186
  """
187
 
188
  def get_pubmed(query, n=5):
 
18
  * { font-family: 'Inter', sans-serif !important; box-sizing: border-box; }
19
 
20
  body, .gradio-container {
21
+ background: #f0f4f8 !important;
22
+ color: #1a202c !important;
23
  }
24
 
25
  .gradio-container {
 
30
 
31
  /* HEADER */
32
  .main-header {
33
+ background: linear-gradient(135deg, #1a237e 0%, #b71c1c 100%);
34
  border-bottom: 3px solid #e63946;
35
  padding: 30px 20px;
36
  text-align: center;
 
39
 
40
  /* TABS - ALWAYS VISIBLE */
41
  .tab-nav {
42
+ background: #ffffff !important;
43
+ border-bottom: 2px solid #e2e8f0 !important;
44
  padding: 0 10px !important;
45
  display: flex !important;
46
  gap: 5px !important;
 
48
  }
49
 
50
  .tab-nav button {
51
+ background: #f7fafc !important;
52
+ color: #2d3748 !important;
53
+ border: 1px solid #e2e8f0 !important;
54
  border-radius: 8px 8px 0 0 !important;
55
  padding: 12px 20px !important;
56
  font-size: 0.9em !important;
 
62
  }
63
 
64
  .tab-nav button:hover {
65
+ background: #ebf4ff !important;
66
+ color: #1a237e !important;
67
  border-color: #4361ee !important;
68
  }
69
 
 
76
 
77
  /* CONTENT AREA */
78
  .tabitem {
79
+ background: #ffffff !important;
80
  padding: 20px !important;
81
+ border: 1px solid #e2e8f0 !important;
82
  border-top: none !important;
83
  }
84
 
85
  /* INPUTS */
86
  textarea, input[type=number], input[type=text] {
87
+ background: #f7fafc !important;
88
+ color: #1a202c !important;
89
+ border: 1px solid #cbd5e0 !important;
90
  border-radius: 8px !important;
91
  font-size: 0.95em !important;
92
  }
 
97
  }
98
 
99
  textarea::placeholder {
100
+ color: #a0aec0 !important;
101
  }
102
 
103
  /* BUTTONS */
 
119
  }
120
 
121
  button.secondary {
122
+ background: #edf2f7 !important;
123
+ color: #4a5568 !important;
124
+ border: 1px solid #cbd5e0 !important;
125
  border-radius: 8px !important;
126
  font-weight: 600 !important;
127
  }
128
 
129
  /* LABELS */
130
  label span, label, .label-wrap span {
131
+ color: #2b6cb0 !important;
132
  font-weight: 600 !important;
133
  font-size: 0.85em !important;
134
  text-transform: uppercase !important;
 
153
  }
154
 
155
  .message.bot {
156
+ background: #ebf4ff !important;
157
+ color: #1a202c !important;
158
+ border: 1px solid #bee3f8 !important;
159
  border-radius: 12px 12px 12px 4px !important;
160
  }
161
 
162
  /* RESULT BOXES */
163
  .gr-box, .block {
164
+ background: #ffffff !important;
165
+ border: 1px solid #e2e8f0 !important;
166
  border-radius: 12px !important;
167
  }
168
 
 
181
 
182
  /* SCROLLBAR */
183
  ::-webkit-scrollbar { width: 6px; }
184
+ ::-webkit-scrollbar-track { background: #f7fafc; }
185
+ ::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
186
  """
187
 
188
  def get_pubmed(query, n=5):