huedaya commited on
Commit
db77e37
·
1 Parent(s): 8e4a5f8

testing secret

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -40,13 +40,12 @@ def main(image_path, threshold, api):
40
  im = cv2.imread(image_path)
41
  im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB)
42
 
43
-
44
  # load secret
45
  apiKey = st.secrets["Api-Key"]
46
- if apiKey != api
47
  image = Image.open(image_path)
48
  image = np.asarray(image)
49
- Image.fromarray(foreground)
50
 
51
  # unify image channels to 3
52
  if len(im.shape) == 2:
 
40
  im = cv2.imread(image_path)
41
  im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB)
42
 
 
43
  # load secret
44
  apiKey = st.secrets["Api-Key"]
45
+ if apiKey != api:
46
  image = Image.open(image_path)
47
  image = np.asarray(image)
48
+ return Image.fromarray(image)
49
 
50
  # unify image channels to 3
51
  if len(im.shape) == 2: