Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
·
8eddb9e
1
Parent(s):
3be3aae
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def edit(input_image,
|
|
| 99 |
pure_ddpm_out = sample(wt, zs, wts, prompt_tar=tar_prompt,
|
| 100 |
cfg_scale_tar=tar_cfg_scale, skip=skip)
|
| 101 |
|
| 102 |
-
if not
|
| 103 |
return pure_ddpm_out,pure_ddpm_out
|
| 104 |
# SEGA
|
| 105 |
edit_concepts = edit_concept.split(",")
|
|
|
|
| 99 |
pure_ddpm_out = sample(wt, zs, wts, prompt_tar=tar_prompt,
|
| 100 |
cfg_scale_tar=tar_cfg_scale, skip=skip)
|
| 101 |
|
| 102 |
+
if not edit_concept or not sega_edit_guidance:
|
| 103 |
return pure_ddpm_out,pure_ddpm_out
|
| 104 |
# SEGA
|
| 105 |
edit_concepts = edit_concept.split(",")
|