hysts HF Staff commited on
Commit
b391e89
·
1 Parent(s): f299d11

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
@@ -22,7 +22,7 @@ def run(image: PIL.Image.Image) -> str:
22
  return processor.batch_decode(generated_ids, skip_special_tokens=True)[0]
23
 
24
 
25
- with gr.Blocks(css_paths="style.css") as demo:
26
  gr.Markdown(DESCRIPTION)
27
  input_image = gr.Image(type="pil")
28
  run_button = gr.Button("Caption")
@@ -36,4 +36,4 @@ with gr.Blocks(css_paths="style.css") as demo:
36
  )
37
 
38
  if __name__ == "__main__":
39
- demo.queue(max_size=20).launch()
 
22
  return processor.batch_decode(generated_ids, skip_special_tokens=True)[0]
23
 
24
 
25
+ with gr.Blocks() as demo:
26
  gr.Markdown(DESCRIPTION)
27
  input_image = gr.Image(type="pil")
28
  run_button = gr.Button("Caption")
 
36
  )
37
 
38
  if __name__ == "__main__":
39
+ 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
  }