Spaces:
Runtime error
Runtime error
import gradio as gr | |
theme = gr.themes.Glass( | |
primary_hue="yellow", | |
secondary_hue=gr.themes.Color(secondary_100="#736c1c", secondary_200="#716823", secondary_300="#fde047", secondary_400="#facc15", secondary_50="#f2e821", secondary_500="#eab308", secondary_600="#ca8a04", secondary_700="#a16207", secondary_800="#854d0e", secondary_900="#713f12", secondary_950="#653b12"), | |
neutral_hue=gr.themes.Color(neutral_100="#2a1304", neutral_200="#e7e5e4", neutral_300="#d6d3d1", neutral_400="#a8a29e", neutral_50="#97ae29", neutral_500="#78716c", neutral_600="#57534e", neutral_700="#44403c", neutral_800="#292524", neutral_900="#1c1917", neutral_950="#0f0e0d"), | |
text_size="text_lg", | |
spacing_size="spacing_md", | |
radius_size=gr.themes.Size(radius_lg="8px", radius_md="6px", radius_sm="4px", radius_xl="12px", radius_xs="2px", radius_xxl="22px", radius_xxs="5px"), | |
font=[gr.themes.GoogleFont('Optima'), gr.themes.GoogleFont('Candara'), gr.themes.GoogleFont('Noto Sans'), gr.themes.GoogleFont('source-sans-pro')], | |
font_mono=[gr.themes.GoogleFont('IBM Plex Mono'), gr.themes.GoogleFont('ui-monospace'), gr.themes.GoogleFont('Consolas'), gr.themes.GoogleFont('monospace')], | |
).set( | |
body_background_fill='*primary_500', | |
body_background_fill_dark='*primary_50', | |
background_fill_primary='*primary_50', | |
background_fill_primary_dark='*primary_50' | |
) | |
with gr.Blocks(theme=theme) as demo: | |
... |