Spaces:
Running
Running
static files
Browse files- static/__init__.py +0 -0
- static/candid_logo_yellow.png +0 -0
- static/chatStyle.css +50 -0
- static/themes/__init__.py +0 -0
- static/themes/candid_gradio.py +44 -0
static/__init__.py
ADDED
|
File without changes
|
static/candid_logo_yellow.png
ADDED
|
static/chatStyle.css
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.message-row img {
|
| 2 |
+
margin: 0px !important;
|
| 3 |
+
}
|
| 4 |
+
|
| 5 |
+
.avatar-container img {
|
| 6 |
+
padding: 0px !important;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
#ssearch-sources {
|
| 10 |
+
/* display: flex; */
|
| 11 |
+
/* display: table; */
|
| 12 |
+
display: block;
|
| 13 |
+
border-spacing: 10px;
|
| 14 |
+
border-collapse: separate;
|
| 15 |
+
gap: 10px;
|
| 16 |
+
/* min-width: 75vw; */
|
| 17 |
+
padding-bottom: 5px;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.source-item {
|
| 21 |
+
display: block;
|
| 22 |
+
min-width: 100px;
|
| 23 |
+
max-width: 45%;
|
| 24 |
+
height: fit-content;
|
| 25 |
+
background-color: #febe10;
|
| 26 |
+
color: black;
|
| 27 |
+
padding: 5px;
|
| 28 |
+
text-align: center;
|
| 29 |
+
border-radius: 5px;
|
| 30 |
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0,0.2);
|
| 31 |
+
font-size: medium;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.ssearch-source {
|
| 35 |
+
text-decoration: none;
|
| 36 |
+
box-sizing: border-box;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
button.upload-button.svelte-1d7elt4 {
|
| 40 |
+
visibility: hidden !important;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.candid-org-link {
|
| 44 |
+
font-weight: bold;
|
| 45 |
+
text-decoration: none;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.candid-app-link {
|
| 49 |
+
font-size: small;
|
| 50 |
+
}
|
static/themes/__init__.py
ADDED
|
File without changes
|
static/themes/candid_gradio.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Iterable
|
| 2 |
+
from gradio.themes.base import Base
|
| 3 |
+
from gradio.themes.utils import fonts, sizes
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class CandidTheme(Base):
|
| 7 |
+
def __init__(
|
| 8 |
+
self,
|
| 9 |
+
*,
|
| 10 |
+
spacing_size: sizes.Size | str = sizes.spacing_md,
|
| 11 |
+
radius_size: sizes.Size | str = sizes.radius_lg,
|
| 12 |
+
text_size: sizes.Size | str = sizes.text_lg,
|
| 13 |
+
font: fonts.Font | str | Iterable[fonts.Font | str] = (
|
| 14 |
+
fonts.GoogleFont("Quicksand"),
|
| 15 |
+
"geogria",
|
| 16 |
+
"ui-sans-serif",
|
| 17 |
+
"sans-serif",
|
| 18 |
+
),
|
| 19 |
+
font_mono: fonts.Font | str | Iterable[fonts.Font | str] = (
|
| 20 |
+
fonts.GoogleFont("IBM Plex Mono"),
|
| 21 |
+
"ui-monospace",
|
| 22 |
+
"monospace",
|
| 23 |
+
),
|
| 24 |
+
):
|
| 25 |
+
super().__init__(
|
| 26 |
+
spacing_size=spacing_size,
|
| 27 |
+
radius_size=radius_size,
|
| 28 |
+
text_size=text_size,
|
| 29 |
+
font=font,
|
| 30 |
+
font_mono=font_mono,
|
| 31 |
+
)
|
| 32 |
+
super().set(
|
| 33 |
+
button_primary_background_fill="linear-gradient(90deg, #FFD700, #FF8C00)",
|
| 34 |
+
button_primary_background_fill_hover="linear-gradient(90deg, #E5AC00, #E67300)",
|
| 35 |
+
button_primary_text_color="white",
|
| 36 |
+
button_primary_background_fill_dark="linear-gradient(90deg, #B8860B, #8B4513)",
|
| 37 |
+
# button_primary_shadow="rgba(0, 0, 0, 0.25) 0px 8px 16px",
|
| 38 |
+
button_large_padding="32px",
|
| 39 |
+
slider_color="#FF8C00",
|
| 40 |
+
slider_color_dark="#B8860B",
|
| 41 |
+
block_title_text_weight="600",
|
| 42 |
+
block_border_width="3px",
|
| 43 |
+
block_shadow="rgba(0, 0, 0, 0.25) 0px 8px 16px",
|
| 44 |
+
)
|