Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def process_image(
|
|
| 77 |
with torch.autocast("cuda"):
|
| 78 |
# Placeholder for using advanced parameters in the future
|
| 79 |
# Adjust parameters according to advanced settings if applicable
|
| 80 |
-
result = pipe.
|
| 81 |
prompt=edit_prompt,
|
| 82 |
input_image=image.resize((1024, 1024)),
|
| 83 |
mask_image=mask.resize((1024, 1024)),
|
|
|
|
| 77 |
with torch.autocast("cuda"):
|
| 78 |
# Placeholder for using advanced parameters in the future
|
| 79 |
# Adjust parameters according to advanced settings if applicable
|
| 80 |
+
result = pipe.edit(
|
| 81 |
prompt=edit_prompt,
|
| 82 |
input_image=image.resize((1024, 1024)),
|
| 83 |
mask_image=mask.resize((1024, 1024)),
|