WideMax commited on
Commit
00e0709
1 Parent(s): f7b4cfc

editor fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def bytes_to_image(image: bytes) -> Image.Image:
26
 
27
 
28
  def edit(editor, source_prompt, target_prompt, config, progress=gr.Progress(track_tqdm=True)):
29
- image = editor['layers'][0]
30
 
31
  if not image or not source_prompt or not target_prompt:
32
  raise ValueError("Need to upload an image and enter init and edit prompts")
 
26
 
27
 
28
  def edit(editor, source_prompt, target_prompt, config, progress=gr.Progress(track_tqdm=True)):
29
+ image = editor['composite'][0]
30
 
31
  if not image or not source_prompt or not target_prompt:
32
  raise ValueError("Need to upload an image and enter init and edit prompts")