theme / push_to_hub.py
deepkyu
update `push_to_hub.py` example code
bae8e8e
raw
history blame
815 Bytes
import gradio as gr
import os
HF_TOKEN = os.getenv('HF_TOKEN', "")
VERSION = os.getenv('VERSION', "")
THEME_NOTA = gr.themes.Base(
primary_hue=gr.themes.Color(c100="#d6def5", c200="#adbeeb", c300="#819adf", c400="#5879d5", c50="#ebeffa", c500="#3e5ac8", c600="#28489f", c700="#112344", c800="#0b172d", c900="#060d18", c950="#03060c"),
secondary_hue="gray",
neutral_hue="zinc",
spacing_size=gr.themes.utils.sizes.spacing_md,
radius_size=gr.themes.utils.sizes.radius_lg,
font=[gr.themes.GoogleFont('Poppins'), gr.themes.GoogleFont('Source Sans Pro'), 'system-ui', 'sans-system-ui'],
font_mono=[gr.themes.GoogleFont('DM Mono'), 'ui-monospace', 'Consolas', 'monospace'],
)
THEME_NOTA.push_to_hub(
repo_name='theme',
org_name='nota-ai',
version=VERSION,
hf_token=HF_TOKEN
)