atatakun commited on
Commit
ef86c66
·
verified ·
1 Parent(s): 6adc725

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -250,13 +250,15 @@ def inpaint(image, invert):
250
  # return im["inputmask"] # bad
251
  # return im["layers"][0]
252
 
253
- css = """
254
- .gradio-container {
255
- max-width: 60rem !important;
256
- }
257
- """
 
258
 
259
- block = gr.Blocks(css=css).queue()
 
260
 
261
  with block:
262
  gr.Markdown(DESCRIPTION)
 
250
  # return im["inputmask"] # bad
251
  # return im["layers"][0]
252
 
253
+ custom_theme = gr.themes.Soft(primary_hue="blue").set(
254
+ button_secondary_background_fill="*neutral_100",
255
+ button_secondary_background_fill_hover="*neutral_200")
256
+ custom_css = '''#disp_image {
257
+ text-align: center; /* Horizontally center the content */
258
+ }'''
259
 
260
+
261
+ block = gr.Blocks(theme=custom_theme, css=custom_css).queue()
262
 
263
  with block:
264
  gr.Markdown(DESCRIPTION)