hysts HF Staff commited on
Commit
ef172a1
·
1 Parent(s): 6a023c1

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

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,7 +57,7 @@ def predict(image: np.ndarray) -> np.ndarray:
57
  return np.clip(res, 0, 255).astype(np.uint8)
58
 
59
 
60
- with gr.Blocks(css_paths="style.css") as demo:
61
  gr.Markdown(DESCRIPTION)
62
  with gr.Row():
63
  with gr.Column():
@@ -72,4 +72,4 @@ with gr.Blocks(css_paths="style.css") as demo:
72
  )
73
 
74
  if __name__ == "__main__":
75
- demo.queue(max_size=20).launch()
 
57
  return np.clip(res, 0, 255).astype(np.uint8)
58
 
59
 
60
+ with gr.Blocks() as demo:
61
  gr.Markdown(DESCRIPTION)
62
  with gr.Row():
63
  with gr.Column():
 
72
  )
73
 
74
  if __name__ == "__main__":
75
+ demo.queue(max_size=20).launch(css_paths="style.css")