sophcheng commited on
Commit
eb562a7
·
verified ·
1 Parent(s): a76bd92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -3
app.py CHANGED
@@ -152,8 +152,6 @@ headline="""
152
  #return "https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExZzdqMnkzcWpjbGhmM3hzcXp0MGpuaTF5djR4bjBxM3Biam5zbzNnMCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/GxMnTi3hV3qaIgbgQL/giphy.gif"
153
  #return "https://cdn-uploads.huggingface.co/production/uploads/6668622b72b61ba78fe7d4bb/PkWjNxvGm9MOqGkZdiT4e.png"
154
  theme = gr.themes.Monochrome(
155
- primary_hue="amber", #okay this did NOT work lmaoo
156
- secondary_hue="rose",
157
  ).set(
158
  body_text_color='#054A91',
159
  body_text_color_dark='#000000',
@@ -169,11 +167,29 @@ theme = gr.themes.Monochrome(
169
  button_primary_background_fill='#054A91',
170
  button_primary_background_fill_dark='#884e4c'
171
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  )
173
  # Setup the Gradio Blocks interface with custom layout components
174
  with gr.Blocks(theme=theme) as demo:
175
  with gr.Row(equal_height=True):
176
- with gr.Column():
177
  gr.Image("ally.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image", scale=0, width=500)
178
  gr.Markdown(welcome_message) # Display the formatted welcome message
179
  with gr.Row():
 
152
  #return "https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExZzdqMnkzcWpjbGhmM3hzcXp0MGpuaTF5djR4bjBxM3Biam5zbzNnMCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/GxMnTi3hV3qaIgbgQL/giphy.gif"
153
  #return "https://cdn-uploads.huggingface.co/production/uploads/6668622b72b61ba78fe7d4bb/PkWjNxvGm9MOqGkZdiT4e.png"
154
  theme = gr.themes.Monochrome(
 
 
155
  ).set(
156
  body_text_color='#054A91',
157
  body_text_color_dark='#000000',
 
167
  button_primary_background_fill='#054A91',
168
  button_primary_background_fill_dark='#884e4c'
169
 
170
+ )
171
+
172
+ leftTheme = gr.themes.Monochrome(
173
+ ).set(
174
+ body_text_color='#FFFFFF',
175
+ body_text_color_dark='#000000',
176
+ background_fill_primary='#81A4CD', # BACKGROUND
177
+ background_fill_primary_dark='#81A4CD',
178
+ background_fill_secondary='#884e4c', # BUTTON HOVER
179
+ background_fill_secondary_dark='#EDDEC0', #LOADING BAR
180
+ border_color_accent='#EDDEC0',
181
+ border_color_accent_dark='#EDDEC0',
182
+ border_color_accent_subdued='#EDDEC0',
183
+ border_color_primary='#F17300',
184
+ block_border_color='#F17300',
185
+ button_primary_background_fill='#054A91',
186
+ button_primary_background_fill_dark='#884e4c'
187
+
188
  )
189
  # Setup the Gradio Blocks interface with custom layout components
190
  with gr.Blocks(theme=theme) as demo:
191
  with gr.Row(equal_height=True):
192
+ with gr.Column(theme=leftTheme):
193
  gr.Image("ally.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image", scale=0, width=500)
194
  gr.Markdown(welcome_message) # Display the formatted welcome message
195
  with gr.Row():