hpeskoff commited on
Commit
1a07fd6
Β·
verified Β·
1 Parent(s): 427f4a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
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='JohnSmith9982/small_and_pretty') as demo:
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():