My-AI-Projects commited on
Commit
a3ce2c7
·
verified ·
1 Parent(s): 972667b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -116,8 +116,16 @@ def colorize(img):
116
  def clear_images():
117
  return None, None
118
 
 
 
 
 
 
 
 
 
119
  # Gradio demo using the Image-Slider custom component
120
- with gr.Blocks(theme="dark") as demo:
121
  with gr.Row():
122
  with gr.Column():
123
  bw_image = gr.Image(label='Black and White Input Image')
 
116
  def clear_images():
117
  return None, None
118
 
119
+ dark_theme = gr.themes.Default(
120
+ primary_hue="teal",
121
+ secondary_hue="gray",
122
+ neutral_hue="slate",
123
+ ).set(
124
+ body_background_fill="#000000" # Set background to black
125
+ )
126
+
127
  # Gradio demo using the Image-Slider custom component
128
+ with gr.Blocks(theme=dark_theme) as demo:
129
  with gr.Row():
130
  with gr.Column():
131
  bw_image = gr.Image(label='Black and White Input Image')