Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -387,7 +387,7 @@ radio_css = """
|
|
387 |
|
388 |
/* Style for the main label ("Select Category:") */
|
389 |
.gradio-radio > label span { /* This targets the "Select Category:" part */
|
390 |
-
font-size: 1.
|
391 |
font-weight: 600;
|
392 |
color: #2a6099;
|
393 |
padding-bottom: 8px;
|
@@ -396,7 +396,7 @@ radio_css = """
|
|
396 |
|
397 |
/* Style for the individual option labels (Overall, MLE-Lite, etc.) */
|
398 |
.gradio-radio .wrap > label > span { /* <--- ADDED/UPDATED RULE */
|
399 |
-
font-size: 1.
|
400 |
font-family: Verdana, Geneva, sans-serif;
|
401 |
color: #444;
|
402 |
font-weight: normal;
|
@@ -415,7 +415,36 @@ radio_css = """
|
|
415 |
|
416 |
"""
|
417 |
|
418 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
|
420 |
# ---------------------------------------------------------------------------
|
421 |
# Build the Gradio UI
|
|
|
387 |
|
388 |
/* Style for the main label ("Select Category:") */
|
389 |
.gradio-radio > label span { /* This targets the "Select Category:" part */
|
390 |
+
font-size: 1.2rem !important;
|
391 |
font-weight: 600;
|
392 |
color: #2a6099;
|
393 |
padding-bottom: 8px;
|
|
|
396 |
|
397 |
/* Style for the individual option labels (Overall, MLE-Lite, etc.) */
|
398 |
.gradio-radio .wrap > label > span { /* <--- ADDED/UPDATED RULE */
|
399 |
+
font-size: 1.2rem !important;
|
400 |
font-family: Verdana, Geneva, sans-serif;
|
401 |
color: #444;
|
402 |
font-weight: normal;
|
|
|
415 |
|
416 |
"""
|
417 |
|
418 |
+
citation_css = """
|
419 |
+
/* Accordion Header Text ("📙 Citation") */
|
420 |
+
.gradio-accordion button.label-wrap > span.svelte-1w6vloh {
|
421 |
+
font-size: 1.4rem !important; /* Adjust size */
|
422 |
+
font-weight: 600; /* Adjust weight */
|
423 |
+
color: #8B4513; /* Adjust color (SaddleBrown example) */
|
424 |
+
font-family: Georgia, serif; /* Adjust font */
|
425 |
+
}
|
426 |
+
|
427 |
+
/* Citation Textbox Label ("Copy the following snippet...") */
|
428 |
+
#citation-button span.svelte-1gfkn6j {
|
429 |
+
font-size: 0.95rem !important; /* Adjust size */
|
430 |
+
color: #666; /* Adjust color */
|
431 |
+
font-style: normal; /* Adjust style (e.g., italic) */
|
432 |
+
display: block; /* Make it a block to add margin */
|
433 |
+
margin-bottom: 5px; /* Add space below label */
|
434 |
+
}
|
435 |
+
|
436 |
+
/* Citation Textbox Content (The actual text) */
|
437 |
+
#citation-button textarea {
|
438 |
+
font-size: 1.0rem !important; /* Adjust size */
|
439 |
+
font-family: monospace; /* Adjust font (monospace often used for citations) */
|
440 |
+
color: #222; /* Adjust text color */
|
441 |
+
line-height: 1.6; /* Adjust line spacing */
|
442 |
+
background-color: #fdfdfd; /* Adjust background color */
|
443 |
+
border: 1px solid #ccc; /* Adjust border */
|
444 |
+
}
|
445 |
+
"""
|
446 |
+
|
447 |
+
final_css = f"{custom_css}\n{base_css}\n{intro_css}\n{markdown_css}\n{tab_css}\n{radio_css}\n{citation_css}"
|
448 |
|
449 |
# ---------------------------------------------------------------------------
|
450 |
# Build the Gradio UI
|