Spaces:
Saad0KH
/
Running on Zero

Saad0KH commited on
Commit
81401b3
ยท
verified ยท
1 Parent(s): 83d675a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,9 +75,9 @@ def load_models():
75
  )
76
  pipe.unet_encoder = UNet_Encoder
77
 
78
- global models_loaded
79
  models_loaded = True
80
 
 
81
  def pil_to_binary_mask(pil_image, threshold=0):
82
  np_image = np.array(pil_image.convert("L")) # Convert to grayscale directly
83
  binary_mask = np_image > threshold
 
75
  )
76
  pipe.unet_encoder = UNet_Encoder
77
 
 
78
  models_loaded = True
79
 
80
+
81
  def pil_to_binary_mask(pil_image, threshold=0):
82
  np_image = np.array(pil_image.convert("L")) # Convert to grayscale directly
83
  binary_mask = np_image > threshold