hysts HF Staff commited on
Commit
faa4630
·
1 Parent(s): 44ccc87

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
@@ -13,7 +13,7 @@ DESCRIPTION = "# [BLIP-Diffusion](https://github.com/salesforce/LAVIS/tree/main/
13
  if not torch.cuda.is_available():
14
  DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
15
 
16
- with gr.Blocks(css_paths="style.css") as demo:
17
  gr.Markdown(DESCRIPTION)
18
 
19
  with gr.Tabs():
@@ -23,4 +23,4 @@ with gr.Blocks(css_paths="style.css") as demo:
23
  demo_stylization.render()
24
 
25
  if __name__ == "__main__":
26
- demo.queue(max_size=20).launch()
 
13
  if not torch.cuda.is_available():
14
  DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
15
 
16
+ with gr.Blocks() as demo:
17
  gr.Markdown(DESCRIPTION)
18
 
19
  with gr.Tabs():
 
23
  demo_stylization.render()
24
 
25
  if __name__ == "__main__":
26
+ demo.queue(max_size=20).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
  }