Update app.py
Browse files186 unmodified lines18718818919019119216 unmodified lines20921021121221321421561 unmodified lines277278279280281282283186 unmodified linestrue_cfg_scale=1.0,rewrite_prompt=True,progress=gr.Progress(track_tqdm=True)):image = edit_images["background"]mask = edit_images["layers"][0]16 unmodified linesgenerator=torch.Generator(device="cuda").manual_seed(seed)).images[0]return result_image, seedexamples = ["change the hat to red",61 unmodified lines)run_button = gr.Button("Run")result = gr.Image(label="Result", show_label=False)with gr.Accordion("Advanced Settings", open=False):186 unmodified lines18718818919019119219316 unmodified lines21021121221321421521661 unmodified lines278279280281282283284186 unmodified linestrue_cfg_scale=1.0,rewrite_prompt=True,progress=gr.Progress(track_tqdm=True)):image = edit_images["background"]mask = edit_images["layers"][0]16 unmodified linesgenerator=torch.Generator(device="cuda").manual_seed(seed)).images[0]return [image,result_image], seedexamples = ["change the hat to red",61 unmodified lines)run_button = gr.Button("Run")result = gr.ImageSlider(label="Result", show_label=False)with gr.Accordion("Advanced Settings", open=False):
app.py+3-2