Zaiiida commited on
Commit
e173da1
·
verified ·
1 Parent(s): 096cf1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -236,7 +236,18 @@ def update_foreground_ratio(img_proc, fr):
236
  foreground_res,
237
  gr.update(value=show_mask_img(foreground_res)),
238
  )
239
-
 
 
 
 
 
 
 
 
 
 
 
240
  css = """
241
  /* Задаем фоновый цвет всей страницы */
242
  body {
@@ -273,7 +284,7 @@ h1, h2, h3, h4, h5, h6 {
273
  border: 1px solid #5271FF !important; /* Голубая рамка */
274
  }
275
  """
276
- with gr.Blocks() as demo:
277
  img_proc_state = gr.State()
278
  background_remove_state = gr.State()
279
 
 
236
  foreground_res,
237
  gr.update(value=show_mask_img(foreground_res)),
238
  )
239
+ class CustomTheme(gr.themes.Base):
240
+ def __init__(self):
241
+ super().__init__()
242
+ self.primary_hue = "#191a1e"
243
+ self.background_fill_primary = "#191a1e"
244
+ self.background_fill_secondary = "#191a1e"
245
+ self.background_fill_tertiary = "#191a1e"
246
+ self.text_color_primary = "#FFFFFF"
247
+ self.text_color_secondary = "#FFFFFF"
248
+ self.text_color_tertiary = "#FFFFFF"
249
+ self.input_background_fill = "#191a1e"
250
+ self.input_text_color = "#FFFFFF"
251
  css = """
252
  /* Задаем фоновый цвет всей страницы */
253
  body {
 
284
  border: 1px solid #5271FF !important; /* Голубая рамка */
285
  }
286
  """
287
+ with gr.Blocks(theme=CustomTheme(), css=css) as demo:
288
  img_proc_state = gr.State()
289
  background_remove_state = gr.State()
290