Update app.py
Browse files
app.py
CHANGED
@@ -188,26 +188,26 @@ if __name__ == "__main__":
|
|
188 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="indigo", secondary_hue="teal")) as iface:
|
189 |
custom_css = """
|
190 |
html, body {
|
191 |
-
background-color: #
|
192 |
-
color: #
|
193 |
font-family: 'Roboto', sans-serif !important;
|
194 |
}
|
195 |
-
|
196 |
#app-title {
|
197 |
text-align: center;
|
198 |
font-size: 36px;
|
199 |
font-weight: 700;
|
200 |
-
color: #
|
201 |
margin-bottom: 20px;
|
202 |
}
|
203 |
-
|
204 |
#description {
|
205 |
font-size: 18px;
|
206 |
margin-bottom: 40px;
|
207 |
text-align: center;
|
208 |
-
color: #
|
209 |
}
|
210 |
-
|
211 |
.gr-button {
|
212 |
padding: 12px 24px;
|
213 |
font-weight: bold;
|
@@ -218,27 +218,28 @@ if __name__ == "__main__":
|
|
218 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
|
219 |
transition: all 0.3s ease;
|
220 |
}
|
221 |
-
|
222 |
.gr-button:hover {
|
223 |
background-color: #005cbf !important; /* Darker blue on hover */
|
224 |
transform: translateY(-2px);
|
225 |
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
|
226 |
}
|
227 |
-
|
228 |
.gr-input:focus {
|
229 |
border-color: #0066cc !important;
|
230 |
box-shadow: 0 0 8px rgba(0, 102, 204, 0.3) !important;
|
231 |
}
|
232 |
-
|
233 |
.gr-output {
|
234 |
-
|
|
|
|
|
|
|
235 |
border-radius: 10px;
|
236 |
-
|
237 |
-
box-shadow: 0 4px
|
238 |
-
margin-bottom: 20px;
|
239 |
-
color: #ffffff !important; /* White text for outputs */
|
240 |
}
|
241 |
-
|
242 |
.error-message {
|
243 |
background-color: #f8d7da !important;
|
244 |
border-color: #f5c6cb !important;
|
@@ -246,7 +247,7 @@ if __name__ == "__main__":
|
|
246 |
padding: 15px;
|
247 |
border-radius: 8px;
|
248 |
}
|
249 |
-
|
250 |
.success-message {
|
251 |
background-color: #d4edda !important;
|
252 |
border-color: #c3e6cb !important;
|
@@ -254,19 +255,21 @@ if __name__ == "__main__":
|
|
254 |
padding: 15px;
|
255 |
border-radius: 8px;
|
256 |
}
|
257 |
-
|
258 |
.gr-row {
|
259 |
margin-bottom: 20px;
|
260 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
|
262 |
-
.file-output {
|
263 |
-
height: 80px;
|
264 |
-
overflow-y: auto;
|
265 |
-
color: #ffffff !important;
|
266 |
-
padding: 10px;
|
267 |
-
border-radius: 10px;
|
268 |
-
border: 1px solid #555555;
|
269 |
-
}
|
270 |
"""
|
271 |
iface.css = custom_css
|
272 |
gr.Markdown("## GPT-2 Drug Generator", elem_id="app-title")
|
|
|
188 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="indigo", secondary_hue="teal")) as iface:
|
189 |
custom_css = """
|
190 |
html, body {
|
191 |
+
background-color: #ffffff !important; /* White background */
|
192 |
+
color: #333333 !important; /* Dark text color for better contrast */
|
193 |
font-family: 'Roboto', sans-serif !important;
|
194 |
}
|
195 |
+
|
196 |
#app-title {
|
197 |
text-align: center;
|
198 |
font-size: 36px;
|
199 |
font-weight: 700;
|
200 |
+
color: #333333 !important; /* Dark title for white background */
|
201 |
margin-bottom: 20px;
|
202 |
}
|
203 |
+
|
204 |
#description {
|
205 |
font-size: 18px;
|
206 |
margin-bottom: 40px;
|
207 |
text-align: center;
|
208 |
+
color: #555555 !important; /* Slightly darker text for description */
|
209 |
}
|
210 |
+
|
211 |
.gr-button {
|
212 |
padding: 12px 24px;
|
213 |
font-weight: bold;
|
|
|
218 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
|
219 |
transition: all 0.3s ease;
|
220 |
}
|
221 |
+
|
222 |
.gr-button:hover {
|
223 |
background-color: #005cbf !important; /* Darker blue on hover */
|
224 |
transform: translateY(-2px);
|
225 |
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
|
226 |
}
|
227 |
+
|
228 |
.gr-input:focus {
|
229 |
border-color: #0066cc !important;
|
230 |
box-shadow: 0 0 8px rgba(0, 102, 204, 0.3) !important;
|
231 |
}
|
232 |
+
|
233 |
.gr-output {
|
234 |
+
height: 120px;
|
235 |
+
overflow-y: auto;
|
236 |
+
color: #333333 !important;
|
237 |
+
padding: 15px;
|
238 |
border-radius: 10px;
|
239 |
+
border: 2px solid #28a745; /* Green border for file section */
|
240 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
|
|
|
241 |
}
|
242 |
+
|
243 |
.error-message {
|
244 |
background-color: #f8d7da !important;
|
245 |
border-color: #f5c6cb !important;
|
|
|
247 |
padding: 15px;
|
248 |
border-radius: 8px;
|
249 |
}
|
250 |
+
|
251 |
.success-message {
|
252 |
background-color: #d4edda !important;
|
253 |
border-color: #c3e6cb !important;
|
|
|
255 |
padding: 15px;
|
256 |
border-radius: 8px;
|
257 |
}
|
258 |
+
|
259 |
.gr-row {
|
260 |
margin-bottom: 20px;
|
261 |
}
|
262 |
+
|
263 |
+
.file-output {
|
264 |
+
height: 90px;
|
265 |
+
overflow-y: auto;
|
266 |
+
color: #333333 !important;
|
267 |
+
padding: 15px;
|
268 |
+
border-radius: 10px;
|
269 |
+
border: 2px solid #28a745; /* Green border for file section */
|
270 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
271 |
+
}
|
272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
"""
|
274 |
iface.css = custom_css
|
275 |
gr.Markdown("## GPT-2 Drug Generator", elem_id="app-title")
|