ysharma HF staff commited on
Commit
94bbd7b
1 Parent(s): 7bc37e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -72,7 +72,7 @@ with gr.Blocks() as demo:
72
  with gr.Column(scale=1):
73
  gr.HTML('''<img src='https://huggingface.co/spaces/ysharma/Zero123PlusDemo/resolve/main/teaser-low.jpg'>''')
74
  with gr.Column(scale=5):
75
- gr.HTML("<h3>A Single Image to Consistent Multi-view Diffusion Base Model</h3>")
76
  gr.HTML('''<a href='https://arxiv.org/abs/2310.15110' target='_blank'>ArXiv</a> - <a href='https://github.com/SUDO-AI-3D/zero123plus/tree/main' target='_blank'>Code</a>''')
77
  gr.HTML(f'<b>Abstract:</b> {abstract}')
78
  with gr.Row():
@@ -89,11 +89,11 @@ with gr.Blocks() as demo:
89
 
90
  # Advanced options section with accordion for hiding/showing
91
  with gr.Accordion("Advanced options:", open=False):
92
- rm_in_bkg = gr.Checkbox(label='Remove Input Background')
93
- rm_out_bkg = gr.Checkbox(label='Remove Output Background')
94
  num_inference_steps = gr.Slider(label="Number of Inference Steps", minimum=15, maximum=100, step=1, value=75, interactive=True)
95
  guidance_scale = gr.Slider(label="Classifier Free Guidance Scale", minimum=1.00, maximum=10.00, step=0.1, value=4.0, interactive=True)
96
- seed = gr.Number(0, label='Seed')
97
 
98
 
99
  btn.click(inference, [input_img, num_inference_steps, guidance_scale, seed ], output_img)
 
72
  with gr.Column(scale=1):
73
  gr.HTML('''<img src='https://huggingface.co/spaces/ysharma/Zero123PlusDemo/resolve/main/teaser-low.jpg'>''')
74
  with gr.Column(scale=5):
75
+ gr.HTML("<h2>A Single Image to Consistent Multi-view Diffusion Base Model</h2>")
76
  gr.HTML('''<a href='https://arxiv.org/abs/2310.15110' target='_blank'>ArXiv</a> - <a href='https://github.com/SUDO-AI-3D/zero123plus/tree/main' target='_blank'>Code</a>''')
77
  gr.HTML(f'<b>Abstract:</b> {abstract}')
78
  with gr.Row():
 
89
 
90
  # Advanced options section with accordion for hiding/showing
91
  with gr.Accordion("Advanced options:", open=False):
92
+ rm_in_bkg = gr.Checkbox(label='Remove Input Background', info='Select this checkbox to run an extra background removal pass like rembg to remove background in Input image ')
93
+ rm_out_bkg = gr.Checkbox(label='Remove Output Background', info='Select this checkbox to run an extra background removal pass like rembg to remove the gray background for Output image')
94
  num_inference_steps = gr.Slider(label="Number of Inference Steps", minimum=15, maximum=100, step=1, value=75, interactive=True)
95
  guidance_scale = gr.Slider(label="Classifier Free Guidance Scale", minimum=1.00, maximum=10.00, step=0.1, value=4.0, interactive=True)
96
+ seed = gr.Number(0, label='Seed', info='A random seed value will be used if seed is set to 0')
97
 
98
 
99
  btn.click(inference, [input_img, num_inference_steps, guidance_scale, seed ], output_img)