Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -130,8 +130,22 @@ topics = """
|
|
130 |
def display_image():
|
131 |
return "https://huggingface.co/spaces/Sustainable-Meal-Assistant/TreeBot/resolve/main/sustainable-food-principles%C2%A9iStock-552584505.jpg"
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
# Setup the Gradio Blocks interface with custom layout components
|
134 |
-
with gr.Blocks(theme=
|
135 |
gr.Image(display_image(), show_label = False, show_share_button = False, show_download_button = False)
|
136 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
137 |
with gr.Row():
|
|
|
130 |
def display_image():
|
131 |
return "https://huggingface.co/spaces/Sustainable-Meal-Assistant/TreeBot/resolve/main/sustainable-food-principles%C2%A9iStock-552584505.jpg"
|
132 |
|
133 |
+
theme = gr.themes.Base().set(
|
134 |
+
background_fill_primary=β##C1D0B5β, # Light green background
|
135 |
+
background_fill_primary_dark=β##3C8181β, # Dark green background
|
136 |
+
border_color_accent=β#FFAB40β, # Accent border color
|
137 |
+
border_color_accent_dark=β#FF6D00β, # Dark accent border color
|
138 |
+
border_color_accent_subdued=β#FF8A65β, # Subdued accent border color
|
139 |
+
border_color_primary=β#00ACC1β, # Primary border color
|
140 |
+
block_border_color=β#FF5722β, # Block border color
|
141 |
+
button_primary_background_fill=β#FF9800β, # Primary button background color
|
142 |
+
button_primary_background_fill_dark=β#EF6C00β # Dark primary button background color
|
143 |
+
)
|
144 |
+
|
145 |
+
|
146 |
+
|
147 |
# Setup the Gradio Blocks interface with custom layout components
|
148 |
+
with gr.Blocks(theme=theme) as demo:
|
149 |
gr.Image(display_image(), show_label = False, show_share_button = False, show_download_button = False)
|
150 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
151 |
with gr.Row():
|