Alexander Bagus commited on
Commit
7cea0c0
·
1 Parent(s): 3819ece
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,7 +80,7 @@ pipe.to("cuda", torch.bfloat16)
80
  print("pipe ready.")
81
 
82
  def prepare(edit_dict):
83
- return edit_dict['composite']
84
 
85
  @spaces.GPU
86
  def inference(
@@ -254,7 +254,7 @@ with gr.Blocks() as demo:
254
  output_image = gr.Image(label="Generated image", show_label=False)
255
  # polished_prompt = gr.Textbox(label="Polished prompt", interactive=False)
256
 
257
- with gr.Accordion("Preprocessor data", open=False):
258
  mask_image = gr.Image(label="Mask image", show_label=False)
259
 
260
  gr.Examples(examples=examples, inputs=[edit_dict, prompt])
 
80
  print("pipe ready.")
81
 
82
  def prepare(edit_dict):
83
+ return edit_dict['layers'][0]
84
 
85
  @spaces.GPU
86
  def inference(
 
254
  output_image = gr.Image(label="Generated image", show_label=False)
255
  # polished_prompt = gr.Textbox(label="Polished prompt", interactive=False)
256
 
257
+ with gr.Accordion("Preprocessor data", open=True):
258
  mask_image = gr.Image(label="Mask image", show_label=False)
259
 
260
  gr.Examples(examples=examples, inputs=[edit_dict, prompt])