Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import pandas as pd
|
|
| 6 |
|
| 7 |
API_ENDPOINT = "https://jaybene1-testapicontacts.hf.space/contacts"
|
| 8 |
|
| 9 |
-
#
|
| 10 |
theme = gr.themes.Soft(
|
| 11 |
primary_hue="blue",
|
| 12 |
secondary_hue="slate",
|
|
@@ -15,9 +15,9 @@ theme = gr.themes.Soft(
|
|
| 15 |
spacing_size="md",
|
| 16 |
radius_size="md"
|
| 17 |
).set(
|
| 18 |
-
body_background_fill="#0f172a",
|
| 19 |
body_background_fill_dark="#0f172a",
|
| 20 |
-
block_background_fill="#1e293b",
|
| 21 |
block_background_fill_dark="#1e293b",
|
| 22 |
block_border_color="#334155",
|
| 23 |
block_border_color_dark="#334155",
|
|
@@ -30,7 +30,9 @@ theme = gr.themes.Soft(
|
|
| 30 |
button_primary_text_color="#ffffff",
|
| 31 |
button_secondary_background_fill="#334155",
|
| 32 |
button_secondary_background_fill_hover="#475569",
|
| 33 |
-
button_secondary_text_color="#f8fafc"
|
|
|
|
|
|
|
| 34 |
)
|
| 35 |
|
| 36 |
def search_contacts(url: str) -> tuple[str, str]:
|
|
@@ -145,6 +147,7 @@ with gr.Blocks(theme=theme, title="Kwekel Companies Contact Search Tool", css=""
|
|
| 145 |
margin: 0;
|
| 146 |
font-size: 2.5rem;
|
| 147 |
font-weight: 700;
|
|
|
|
| 148 |
}
|
| 149 |
.info-box {
|
| 150 |
background: #1e293b;
|
|
@@ -154,12 +157,15 @@ with gr.Blocks(theme=theme, title="Kwekel Companies Contact Search Tool", css=""
|
|
| 154 |
margin: 1rem 0;
|
| 155 |
color: #f8fafc;
|
| 156 |
}
|
|
|
|
|
|
|
|
|
|
| 157 |
.footer {
|
| 158 |
text-align: center;
|
| 159 |
margin-top: 2rem;
|
| 160 |
padding-top: 2rem;
|
| 161 |
border-top: 1px solid #475569;
|
| 162 |
-
color: #94a3b8;
|
| 163 |
}
|
| 164 |
""") as demo:
|
| 165 |
|
|
|
|
| 6 |
|
| 7 |
API_ENDPOINT = "https://jaybene1-testapicontacts.hf.space/contacts"
|
| 8 |
|
| 9 |
+
# Updated dark theme with white text
|
| 10 |
theme = gr.themes.Soft(
|
| 11 |
primary_hue="blue",
|
| 12 |
secondary_hue="slate",
|
|
|
|
| 15 |
spacing_size="md",
|
| 16 |
radius_size="md"
|
| 17 |
).set(
|
| 18 |
+
body_background_fill="#0f172a",
|
| 19 |
body_background_fill_dark="#0f172a",
|
| 20 |
+
block_background_fill="#1e293b",
|
| 21 |
block_background_fill_dark="#1e293b",
|
| 22 |
block_border_color="#334155",
|
| 23 |
block_border_color_dark="#334155",
|
|
|
|
| 30 |
button_primary_text_color="#ffffff",
|
| 31 |
button_secondary_background_fill="#334155",
|
| 32 |
button_secondary_background_fill_hover="#475569",
|
| 33 |
+
button_secondary_text_color="#f8fafc",
|
| 34 |
+
text_color="#f8fafc",
|
| 35 |
+
text_color_dark="#f8fafc"
|
| 36 |
)
|
| 37 |
|
| 38 |
def search_contacts(url: str) -> tuple[str, str]:
|
|
|
|
| 147 |
margin: 0;
|
| 148 |
font-size: 2.5rem;
|
| 149 |
font-weight: 700;
|
| 150 |
+
color: #ffffff;
|
| 151 |
}
|
| 152 |
.info-box {
|
| 153 |
background: #1e293b;
|
|
|
|
| 157 |
margin: 1rem 0;
|
| 158 |
color: #f8fafc;
|
| 159 |
}
|
| 160 |
+
label, h3, p, li, ol {
|
| 161 |
+
color: #f8fafc !important;
|
| 162 |
+
}
|
| 163 |
.footer {
|
| 164 |
text-align: center;
|
| 165 |
margin-top: 2rem;
|
| 166 |
padding-top: 2rem;
|
| 167 |
border-top: 1px solid #475569;
|
| 168 |
+
color: #94a3b8 !important;
|
| 169 |
}
|
| 170 |
""") as demo:
|
| 171 |
|