Spaces:

WideMax commited on
Commit
0381192
1 Parent(s): 00e0709
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['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")
 
26
 
27
 
28
  def edit(editor, source_prompt, target_prompt, config, progress=gr.Progress(track_tqdm=True)):
29
+ image = editor['composite']
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")