Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
b16c6b4
1
Parent(s):
6d1bb98
add hover and change purple to indigo & add css to gr.Blocks
Browse files
app.py
CHANGED
@@ -101,8 +101,12 @@ css = """
|
|
101 |
.example-button {
|
102 |
font-size: .75rem;
|
103 |
background-color: #fff;
|
104 |
-
border: 1px solid
|
105 |
-
color:
|
|
|
|
|
|
|
|
|
106 |
}
|
107 |
"""
|
108 |
|
@@ -200,7 +204,7 @@ def select_template(template):
|
|
200 |
# def download_file():
|
201 |
# return [gr.UploadButton(visible=True), gr.DownloadButton(visible=False)]
|
202 |
|
203 |
-
with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Plus Jakarta Sans"), "Arial", "sans-serif"], primary_hue="indigo", secondary_hue="purple")) as demo:
|
204 |
base_url_state = gr.State(update_client_base_url("Patronus Lynx 8B v1.1"))
|
205 |
gr.Markdown(HEADER)
|
206 |
model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B v1.1", "Patronus Lynx 70B"], value="Patronus Lynx 8B v1.1", label="Model", interactive=True)
|
|
|
101 |
.example-button {
|
102 |
font-size: .75rem;
|
103 |
background-color: #fff;
|
104 |
+
border: 1px solid #564fe6;
|
105 |
+
color: #564fe6;
|
106 |
+
}
|
107 |
+
.example-button:hover {
|
108 |
+
background-color: #564fe6;
|
109 |
+
color: #fff;
|
110 |
}
|
111 |
"""
|
112 |
|
|
|
204 |
# def download_file():
|
205 |
# return [gr.UploadButton(visible=True), gr.DownloadButton(visible=False)]
|
206 |
|
207 |
+
with gr.Blocks(css=css, theme=gr.themes.Default(font=[gr.themes.GoogleFont("Plus Jakarta Sans"), "Arial", "sans-serif"], primary_hue="indigo", secondary_hue="purple")) as demo:
|
208 |
base_url_state = gr.State(update_client_base_url("Patronus Lynx 8B v1.1"))
|
209 |
gr.Markdown(HEADER)
|
210 |
model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B v1.1", "Patronus Lynx 70B"], value="Patronus Lynx 8B v1.1", label="Model", interactive=True)
|