final fix
Browse files
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']
|
| 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")
|