My-AI-Projects commited on
Commit
5dfcfce
·
verified ·
1 Parent(s): aafdea3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -123,9 +123,14 @@ dark_theme = gr.themes.Default(
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')
@@ -137,4 +142,4 @@ with gr.Blocks(theme=dark_theme) as demo:
137
  clear = gr.Button("Clear")
138
  btn.click(colorize, bw_image, col_image_slider)
139
  clear.click(clear_images, outputs=[bw_image, col_image_slider])
140
- demo.launch(show_share_button=False, api_mode=False)
 
123
  ).set(
124
  body_background_fill="#000000" # Set background to black
125
  )
126
+ custom_css = """
127
+ .gradio-app #footer {
128
+ display: none;
129
+ }
130
+ """
131
 
132
  # Gradio demo using the Image-Slider custom component
133
+ with gr.Blocks(theme=dark_theme,custom_css) as demo:
134
  with gr.Row():
135
  with gr.Column():
136
  bw_image = gr.Image(label='Black and White Input Image')
 
142
  clear = gr.Button("Clear")
143
  btn.click(colorize, bw_image, col_image_slider)
144
  clear.click(clear_images, outputs=[bw_image, col_image_slider])
145
+ demo.launch()