Update app.py
Browse files
app.py
CHANGED
|
@@ -168,6 +168,7 @@ theme = gr.themes.Default(
|
|
| 168 |
primary_hue="neutral",
|
| 169 |
secondary_hue="neutral",
|
| 170 |
).set(
|
|
|
|
| 171 |
background_fill_primary_dark='#e3e9da',
|
| 172 |
background_fill_secondary="#f8f1ea",
|
| 173 |
background_fill_secondary_dark="#f8f1ea",
|
|
@@ -181,6 +182,17 @@ theme = gr.themes.Default(
|
|
| 181 |
)
|
| 182 |
|
| 183 |
# Setup the Gradio Blocks interface with custom layout components
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
with gr.Blocks(theme=theme) as demo:
|
| 185 |
gr.Image("CalmConnect.jpg", show_label = False, show_share_button = False, show_download_button = False)
|
| 186 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
|
|
|
| 168 |
primary_hue="neutral",
|
| 169 |
secondary_hue="neutral",
|
| 170 |
).set(
|
| 171 |
+
background_fill_primary='#e3e9da',
|
| 172 |
background_fill_primary_dark='#e3e9da',
|
| 173 |
background_fill_secondary="#f8f1ea",
|
| 174 |
background_fill_secondary_dark="#f8f1ea",
|
|
|
|
| 182 |
)
|
| 183 |
|
| 184 |
# Setup the Gradio Blocks interface with custom layout components
|
| 185 |
+
with gr.Blocks(theme='gstaff/xkcd') as demo:
|
| 186 |
+
with gr.Row().style(equal_height=True):
|
| 187 |
+
with gr.Column(scale=10):
|
| 188 |
+
gr.Markdown(
|
| 189 |
+
"""
|
| 190 |
+
# Theme preview: `xkcd`
|
| 191 |
+
To use this theme, set `theme='gstaff/xkcd'` in `gr.Blocks()` or `gr.Interface()`.
|
| 192 |
+
You can append an `@` and a semantic version expression, e.g. @>=1.0.0,<2.0.0 to pin to a given version
|
| 193 |
+
of this theme.
|
| 194 |
+
"""
|
| 195 |
+
)
|
| 196 |
with gr.Blocks(theme=theme) as demo:
|
| 197 |
gr.Image("CalmConnect.jpg", show_label = False, show_share_button = False, show_download_button = False)
|
| 198 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|