fffiloni commited on
Commit
317abd1
·
verified ·
1 Parent(s): e4f207a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -152,15 +152,8 @@ def infer(use_custom_model, model_name, weight_name, custom_lora_weight, image_i
152
 
153
  if preprocessor == "lineart":
154
  image = Image.open(image_in)
155
-
156
- # Convert the image to a NumPy array
157
- image = np.array(image)
158
-
159
- # (Optional) If you need to ensure the image is in RGB format, convert it
160
  image = image.convert("RGB")
161
  image = np.array(image)
162
-
163
- # Convert the NumPy array back to a PIL Image (if you need to do further PIL-based processing)
164
  image = Image.fromarray(image)
165
 
166
  if use_custom_model:
 
152
 
153
  if preprocessor == "lineart":
154
  image = Image.open(image_in)
 
 
 
 
 
155
  image = image.convert("RGB")
156
  image = np.array(image)
 
 
157
  image = Image.fromarray(image)
158
 
159
  if use_custom_model: