File size: 1,262 Bytes
bcfaedb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import gradio as gr

# GRADIO UI

# =========================
# CUSTOM CSS
# =========================

app_css = """
/* =========================
HEADINGS ONLY
========================= */

h1, h2, h3 {
    color: #006c4b !important;
}

/* =========================
WELCOME PAGE
========================= */

.welcome-page {
    background-color: #eaf6f0;
    border-radius: 16px;
    padding: 32px;
}

.welcome-title {
    text-align: center;
}

.welcome-logo {
    display: flex;
    justify-content: center;
}

.welcome-btn {
    min-height: 64px !important;
    font-size: 1.05rem !important;
    white-space: normal !important;
}

.welcome-caption {
    text-align: center;
    color: #4a4a4a;
    font-size: 0.92rem;
    margin-top: 4px;
}

/* =========================
HIDE TAB BAR
========================= */
/* Navigation is handled by the custom Home / Back buttons, not by
   clicking tab headers directly, so the tab bar itself is hidden. */
.tab-nav {
    display: none !important;
}
"""

# =========================
# THEME
# =========================

theme = gr.themes.Base(
    primary_hue="green"
).set(
    button_primary_background_fill="#006c4b",
    button_primary_background_fill_hover="#008a61",
    button_primary_text_color="white"
)