hysts HF Staff commited on
Commit
da74e61
·
1 Parent(s): 1b29be3

Move css_paths to launch() and drop dead #duplicate-button CSS

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. style.css +0 -7
app.py CHANGED
@@ -53,7 +53,7 @@ def run(image: PIL.Image.Image) -> tuple[tuple[PIL.Image.Image, PIL.Image.Image]
53
  )
54
 
55
 
56
- with gr.Blocks(css_paths="style.css") as demo:
57
  gr.Markdown("# DepthPro")
58
  with gr.Row():
59
  with gr.Column():
@@ -92,4 +92,4 @@ with gr.Blocks(css_paths="style.css") as demo:
92
  )
93
 
94
  if __name__ == "__main__":
95
- demo.launch()
 
53
  )
54
 
55
 
56
+ with gr.Blocks() as demo:
57
  gr.Markdown("# DepthPro")
58
  with gr.Row():
59
  with gr.Column():
 
92
  )
93
 
94
  if __name__ == "__main__":
95
+ demo.launch(css_paths="style.css")
style.css CHANGED
@@ -2,10 +2,3 @@ h1 {
2
  text-align: center;
3
  display: block;
4
  }
5
-
6
- #duplicate-button {
7
- margin: auto;
8
- color: #fff;
9
- background: #1565c0;
10
- border-radius: 100vh;
11
- }
 
2
  text-align: center;
3
  display: block;
4
  }