fffiloni commited on
Commit
46ec255
1 Parent(s): 7e5988c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -48,12 +48,18 @@ css="""
48
  margin: 0 auto;
49
  }
50
  """
51
- with gr.Blocks() as demo:
52
  with gr.Column(elem_id="col-container"):
53
  gr.HTML("""
54
- <h2 style="text-aligb: center;">
55
  HandRefiner
56
  </h2>
 
 
 
 
 
 
57
  """)
58
  with gr.Row():
59
  with gr.Column():
@@ -65,4 +71,4 @@ with gr.Blocks() as demo:
65
 
66
  button.click(fn=generate, inputs=[image, textbox, seed], outputs=[output_image])
67
 
68
- demo.queue().launch(inline=False, share=True, debug=True)
 
48
  margin: 0 auto;
49
  }
50
  """
51
+ with gr.Blocks(css=css) as demo:
52
  with gr.Column(elem_id="col-container"):
53
  gr.HTML("""
54
+ <h2 style="text-align: center;">
55
  HandRefiner
56
  </h2>
57
+ <p style="text-align: center;">
58
+ Refining Malformed Hands in Generated Images by Diffusion-based Conditional Inpainting
59
+ </p>
60
+ p style="margin:12px auto;display: flex;justify-content: center;">
61
+ <a href="https://huggingface.co/spaces/fffiloni/HandRefiner?duplicate=true"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-lg.svg" alt="Duplicate this Space"></a>
62
+ </p>
63
  """)
64
  with gr.Row():
65
  with gr.Column():
 
71
 
72
  button.click(fn=generate, inputs=[image, textbox, seed], outputs=[output_image])
73
 
74
+ demo.queue(max_size=10).launch(inline=False, debug=True)