Spaces:
Running
on
Zero
Running
on
Zero
File size: 1,908 Bytes
21c87da 1e41501 21c87da c369c5b 5867a9c c369c5b 21c87da d2d5258 4846384 0658a37 8fd3b0d 0658a37 60d8ae5 8d18f89 3468d5b d6ff627 3468d5b bb209bb 21c87da |
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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
import gradio as gr
theme = gr.themes.Default(
primary_hue="blue",
secondary_hue="blue",
neutral_hue="slate",
font=[
gr.themes.GoogleFont("Open Sans"),
"ui-sans-serif",
"system-ui",
"sans-serif",
],
# text_size="md",
)
css = """
.svg-image {
height: auto;
width: 100%;
margin: auto;
}
.transcription {
font-size: large;
position: sticky;
top: 20px;
}
/* style of textline svg elements */
.textline {
fill: transparent;
stroke: blue;
stroke-width: 10;
stroke-opacity: 0.2;
}
.highlighted polygon {
fill:blue;
fill-opacity: 0.2;
}
span.highlighted {
background-color: rgba(0%, 0%, 100%, 0.2);
font-size: large;
}
hr.region-divider {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.panel-with-border {
background: none;
border: solid 1px;
border-color: var(--block-border-color);
}
.pipeline-help {
padding: 5px 0 0 0;
font-weight: var(--block-info-text-weight);
font-size: var(--block-info-text-size);
color: var(--block-info-text-color);
}
.pipeline-info {
padding: 0 0 0 2px;
font-weight: var(--block-info-text-weight);
color: var(--block-info-text-color);
}
.pipeline-help a {
color: var(--secondary-400);
}
.pipeline-help a:hover {
color: var(--secondary-500);
}
.pipeline-header {
padding: 2px 0px 0px 2px;
color: var(--body-text-color);
}
.pipeline-description {
margin: auto;
color: var(--body-text-color);
}
.button-group-viz {
margin: auto;
display: flex;
justify-content: center;
gap: 1rem;
text-align: center;
}
.modal-block {
width: 60%;
padding: 1rem;
}
@media (max-width: 1024px) { /* mobile and standing iPads */
.modal-block {
width: 100%;
}
}
.grid-wrap.svelte-842rpi.svelte-842rpi {
overflow-y: auto !important;
}
.grid-container.svelte-842rpi {
height: auto !important;
}
.title-h1 {
text-align: center;
display:block;
}
"""
|