haritsahm
commited on
Commit
·
48bf1ef
1
Parent(s):
007b3ff
hotfix incorrect variable name
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def process_box(predictor_model, show_mask, radius_width):
|
|
20 |
scale = container_width/width
|
21 |
scaled_wh = (container_width, int(height * scale))
|
22 |
|
23 |
-
if not predictor_model.
|
24 |
np_image = np.asanyarray(bg_image)
|
25 |
with st.spinner(text="Extracing embeddings.."):
|
26 |
predictor_model.set_image(np_image)
|
@@ -99,7 +99,7 @@ def process_click(predictor_model, show_mask, radius_width):
|
|
99 |
scale = container_width/width
|
100 |
scaled_wh = (container_width, int(height * scale))
|
101 |
|
102 |
-
if not predictor_model.
|
103 |
np_image = np.asanyarray(bg_image)
|
104 |
with st.spinner(text="Extracing embeddings.."):
|
105 |
predictor_model.set_image(np_image)
|
|
|
20 |
scale = container_width/width
|
21 |
scaled_wh = (container_width, int(height * scale))
|
22 |
|
23 |
+
if not predictor_model.is_image_set:
|
24 |
np_image = np.asanyarray(bg_image)
|
25 |
with st.spinner(text="Extracing embeddings.."):
|
26 |
predictor_model.set_image(np_image)
|
|
|
99 |
scale = container_width/width
|
100 |
scaled_wh = (container_width, int(height * scale))
|
101 |
|
102 |
+
if not predictor_model.is_image_set:
|
103 |
np_image = np.asanyarray(bg_image)
|
104 |
with st.spinner(text="Extracing embeddings.."):
|
105 |
predictor_model.set_image(np_image)
|