mpatel57 commited on
Commit
4c5c92a
1 Parent(s): 5a3565c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return None, f"❌ Please provide a prompt for inpainting."
 
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