ashishkgpian commited on
Commit
7e41ac7
·
verified ·
1 Parent(s): 324b7a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -27
app.py CHANGED
@@ -44,7 +44,7 @@ def classify_symptoms(text):
44
  except Exception as e:
45
  return f"Error processing classification: {str(e)}"
46
 
47
- # Enhanced CSS with improved colors and contrast
48
  custom_css = """
49
  .gradio-container {
50
  width: 100% !important;
@@ -60,7 +60,7 @@ custom_css = """
60
  text-align: center;
61
  padding: 2rem;
62
  margin: 0;
63
- background: #f8f9fa;
64
  width: 100%;
65
  }
66
  .content-wrapper {
@@ -69,6 +69,7 @@ custom_css = """
69
  padding: 0 2rem;
70
  width: 100%;
71
  box-sizing: border-box;
 
72
  }
73
  h1 {
74
  color: #4527a0 !important;
@@ -92,25 +93,21 @@ h3 {
92
  border: 1px solid #e0e0e0 !important;
93
  }
94
  .input-container label {
95
- color: #333333 !important;
96
  font-weight: 600 !important;
97
  font-size: 1.1rem !important;
98
  margin-bottom: 0.5rem !important;
 
99
  }
100
  textarea {
101
  background: #ffffff !important;
102
- color: #333333 !important;
103
  border: 2px solid #673ab7 !important;
104
  border-radius: 8px !important;
105
  padding: 1rem !important;
106
  font-size: 1.2rem !important;
107
  min-height: 150px !important;
108
  width: 100% !important;
109
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
110
- }
111
- textarea:focus {
112
- border-color: #4527a0 !important;
113
- box-shadow: 0 0 0 2px rgba(103, 58, 183, 0.1) !important;
114
  }
115
  .submit-btn {
116
  background-color: #673ab7 !important;
@@ -123,12 +120,9 @@ textarea:focus {
123
  width: auto !important;
124
  font-weight: 600 !important;
125
  border: none !important;
126
- box-shadow: 0 2px 4px rgba(103, 58, 183, 0.2) !important;
127
  }
128
  .submit-btn:hover {
129
  background-color: #5e35b1 !important;
130
- box-shadow: 0 4px 8px rgba(103, 58, 183, 0.3) !important;
131
- transform: translateY(-1px) !important;
132
  }
133
  .output-container {
134
  background: #ffffff !important;
@@ -140,18 +134,11 @@ textarea:focus {
140
  border: 1px solid #e0e0e0 !important;
141
  }
142
  .output-container label {
143
- color: #333333 !important;
144
  font-weight: 600 !important;
145
  font-size: 1.1rem !important;
146
  margin-bottom: 1rem !important;
147
- }
148
- .output-container pre {
149
- background: #f8f9fa !important;
150
- color: #333333 !important;
151
- border-radius: 8px !important;
152
- padding: 1.5rem !important;
153
- font-size: 1.1rem !important;
154
- border: 1px solid #e0e0e0 !important;
155
  }
156
  .examples-container {
157
  background: #ffffff !important;
@@ -163,21 +150,19 @@ textarea:focus {
163
  border: 1px solid #e0e0e0 !important;
164
  }
165
  .examples-container label {
166
- color: #333333 !important;
167
  font-weight: 600 !important;
168
  font-size: 1.1rem !important;
 
169
  }
170
  .footer {
171
  text-align: center;
172
  padding: 2rem;
173
- background: #f8f9fa;
174
  margin-top: auto;
175
  width: 100%;
176
  border-top: 1px solid #e0e0e0;
177
- color: #4527a0;
178
- }
179
- .footer strong {
180
- color: #333333;
181
  }
182
  """
183
 
 
44
  except Exception as e:
45
  return f"Error processing classification: {str(e)}"
46
 
47
+ # Enhanced CSS with white background and black text
48
  custom_css = """
49
  .gradio-container {
50
  width: 100% !important;
 
60
  text-align: center;
61
  padding: 2rem;
62
  margin: 0;
63
+ background: #ffffff;
64
  width: 100%;
65
  }
66
  .content-wrapper {
 
69
  padding: 0 2rem;
70
  width: 100%;
71
  box-sizing: border-box;
72
+ background: #ffffff;
73
  }
74
  h1 {
75
  color: #4527a0 !important;
 
93
  border: 1px solid #e0e0e0 !important;
94
  }
95
  .input-container label {
96
+ color: #000000 !important;
97
  font-weight: 600 !important;
98
  font-size: 1.1rem !important;
99
  margin-bottom: 0.5rem !important;
100
+ background: #ffffff !important;
101
  }
102
  textarea {
103
  background: #ffffff !important;
104
+ color: #000000 !important;
105
  border: 2px solid #673ab7 !important;
106
  border-radius: 8px !important;
107
  padding: 1rem !important;
108
  font-size: 1.2rem !important;
109
  min-height: 150px !important;
110
  width: 100% !important;
 
 
 
 
 
111
  }
112
  .submit-btn {
113
  background-color: #673ab7 !important;
 
120
  width: auto !important;
121
  font-weight: 600 !important;
122
  border: none !important;
 
123
  }
124
  .submit-btn:hover {
125
  background-color: #5e35b1 !important;
 
 
126
  }
127
  .output-container {
128
  background: #ffffff !important;
 
134
  border: 1px solid #e0e0e0 !important;
135
  }
136
  .output-container label {
137
+ color: #000000 !important;
138
  font-weight: 600 !important;
139
  font-size: 1.1rem !important;
140
  margin-bottom: 1rem !important;
141
+ background: #ffffff !important;
 
 
 
 
 
 
 
142
  }
143
  .examples-container {
144
  background: #ffffff !important;
 
150
  border: 1px solid #e0e0e0 !important;
151
  }
152
  .examples-container label {
153
+ color: #000000 !important;
154
  font-weight: 600 !important;
155
  font-size: 1.1rem !important;
156
+ background: #ffffff !important;
157
  }
158
  .footer {
159
  text-align: center;
160
  padding: 2rem;
161
+ background: #ffffff;
162
  margin-top: auto;
163
  width: 100%;
164
  border-top: 1px solid #e0e0e0;
165
+ color: #000000;
 
 
 
166
  }
167
  """
168