deepkyu
commited on
Commit
•
10fce7c
1
Parent(s):
5c43833
add `push_to_hub.py` example code
Browse files- push_to_hub.py +22 -0
push_to_hub.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import os
|
3 |
+
|
4 |
+
HF_TOKEN = os.getenv('HF_TOKEN', "")
|
5 |
+
VERSION = os.getenv('VERSION', "")
|
6 |
+
|
7 |
+
THEME_NOTA = gr.themes.Base(
|
8 |
+
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"),
|
9 |
+
secondary_hue="gray",
|
10 |
+
neutral_hue="zinc",
|
11 |
+
spacing_size=gr.themes.utils.sizes.spacing_lg,
|
12 |
+
radius_size=gr.themes.utils.sizes.radius_lg,
|
13 |
+
font=[gr.themes.GoogleFont('Poppins'), gr.themes.GoogleFont('Source Sans Pro'), 'system-ui', 'sans-system-ui'],
|
14 |
+
font_mono=[gr.themes.GoogleFont('DM Mono'), 'ui-monospace', 'Consolas', 'monospace'],
|
15 |
+
)
|
16 |
+
|
17 |
+
THEME_NOTA.push_to_hub(
|
18 |
+
repo_name='theme',
|
19 |
+
org_name='nota-ai',
|
20 |
+
version=VERSION,
|
21 |
+
hf_token=HF_TOKEN
|
22 |
+
)
|