Circularmachines commited on
Commit
9303628
·
1 Parent(s): 4f0f93d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -135,7 +135,7 @@ with col1:
135
  value = streamlit_image_coordinates(current_image, key="pil")
136
 
137
  if value is not None:
138
- point = value["x"]//stride*stride-8, value["y"]//stride*stride-8
139
 
140
  if point != st.session_state["point"]:
141
  st.session_state["point"]=point
 
135
  value = streamlit_image_coordinates(current_image, key="pil")
136
 
137
  if value is not None:
138
+ point = (value["x"]-8)//stride*stride, (value["y"]-8)//stride*stride
139
 
140
  if point != st.session_state["point"]:
141
  st.session_state["point"]=point