Maharshi Gor
commited on
Commit
·
eaa5563
1
Parent(s):
3808ead
Minor display formatting change
Browse files- src/components/commons.py +2 -2
- src/display/formatting.py +1 -1
src/components/commons.py
CHANGED
|
@@ -29,7 +29,7 @@ def get_pipeline_selector(model_options: list[str]):
|
|
| 29 |
def get_panel_header(header: str, subheader: str | None = None):
|
| 30 |
html = f"<h4 class='panel-header'>{header}</h4>"
|
| 31 |
if subheader:
|
| 32 |
-
html += f"<p class='panel-subheader'>{subheader}</p>"
|
| 33 |
-
with gr.Row(elem_classes="panel-header-container") as row:
|
| 34 |
gr.HTML(html)
|
| 35 |
return row
|
|
|
|
| 29 |
def get_panel_header(header: str, subheader: str | None = None):
|
| 30 |
html = f"<h4 class='panel-header'>{header}</h4>"
|
| 31 |
if subheader:
|
| 32 |
+
html += f"<p class='md panel-subheader'>{subheader}</p>"
|
| 33 |
+
with gr.Row(elem_classes="md panel-header-container") as row:
|
| 34 |
gr.HTML(html)
|
| 35 |
return row
|
src/display/formatting.py
CHANGED
|
@@ -16,7 +16,7 @@ def styled_warning(warn):
|
|
| 16 |
|
| 17 |
|
| 18 |
def tiny_styled_warning(warn):
|
| 19 |
-
return f"<
|
| 20 |
|
| 21 |
|
| 22 |
def styled_message(message):
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
def tiny_styled_warning(warn):
|
| 19 |
+
return f"<div class='md' style='color: crimson; font-size: 12px; text-align: left;'>{warn}</div>"
|
| 20 |
|
| 21 |
|
| 22 |
def styled_message(message):
|