Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -137,9 +137,25 @@ def display_iframe():
|
|
137 |
def display_image():
|
138 |
return "https://images.ctfassets.net/t5gtctpjc8ne/6voM4MnZ2sKOYMwF7pICmY/5b250c4e007b3a463c5ae387a171b5fb/hero-C_R-composting_garden_0093_IS.jpg"
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
|
141 |
# Setup the Gradio Blocks interface with custom layout components
|
142 |
-
with gr.Blocks(theme=
|
143 |
gr.Image(display_image(), show_label = False, show_share_button = False, show_download_button = False)
|
144 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
145 |
with gr.Row():
|
|
|
137 |
def display_image():
|
138 |
return "https://images.ctfassets.net/t5gtctpjc8ne/6voM4MnZ2sKOYMwF7pICmY/5b250c4e007b3a463c5ae387a171b5fb/hero-C_R-composting_garden_0093_IS.jpg"
|
139 |
|
140 |
+
theme = gr.themes.Monochrome(
|
141 |
+
primary_hue="lime",
|
142 |
+
secondary_hue="emerald",
|
143 |
+
).set(
|
144 |
+
background_fill_primary='*primary_200',
|
145 |
+
background_fill_primary_dark='*primary_200',
|
146 |
+
background_fill_secondary='*secondary_300',
|
147 |
+
background_fill_secondary_dark='*secondary_300',
|
148 |
+
border_color_accent='*secondary_200',
|
149 |
+
border_color_accent_dark='*secondary_600',
|
150 |
+
border_color_accent_subdued='*secondary_200',
|
151 |
+
border_color_primary='*secondary_300',
|
152 |
+
block_border_color='*secondary_200',
|
153 |
+
button_primary_background_fill='*secondary_300',
|
154 |
+
button_primary_background_fill_dark='*secondary_300'
|
155 |
+
)
|
156 |
|
157 |
# Setup the Gradio Blocks interface with custom layout components
|
158 |
+
with gr.Blocks(theme=theme) as demo:
|
159 |
gr.Image(display_image(), show_label = False, show_share_button = False, show_download_button = False)
|
160 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
161 |
with gr.Row():
|