Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,8 @@ def process_image(
|
|
| 45 |
mask = mask.split()[-1] # Convert mask to grayscale
|
| 46 |
|
| 47 |
if not prompt:
|
| 48 |
-
|
|
|
|
| 49 |
with torch.autocast("cuda"):
|
| 50 |
# Placeholder for using advanced parameters in the future
|
| 51 |
# Adjust parameters according to advanced settings if applicable
|
|
|
|
| 45 |
mask = mask.split()[-1] # Convert mask to grayscale
|
| 46 |
|
| 47 |
if not prompt:
|
| 48 |
+
prompt = ""
|
| 49 |
+
|
| 50 |
with torch.autocast("cuda"):
|
| 51 |
# Placeholder for using advanced parameters in the future
|
| 52 |
# Adjust parameters according to advanced settings if applicable
|