Circularmachines commited on
Commit
5ff37df
·
1 Parent(s): e2813d1

app.py updates

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,7 +78,7 @@ with col1:
78
  value = streamlit_image_coordinates(current_image, key="pil")
79
 
80
  if value is not None:
81
- point = value["x"]//32*32, value["y"]//32*32
82
 
83
  if point != st.session_state["point"]:
84
  st.session_state["point"]=point
@@ -87,7 +87,7 @@ with col1:
87
 
88
  #subcol1, subcol2 = st.columns(2)
89
  #with subcol1:
90
- st.button('Previous Frame', on_click=button_click)
91
  st.button('Change Batch', on_click=button_click)
92
  st.button('Find similar parts', on_click=find)
93
 
 
78
  value = streamlit_image_coordinates(current_image, key="pil")
79
 
80
  if value is not None:
81
+ point = np.round(value["x"]/32)*32, np.round(value["y"]/32)*32
82
 
83
  if point != st.session_state["point"]:
84
  st.session_state["point"]=point
 
87
 
88
  #subcol1, subcol2 = st.columns(2)
89
  #with subcol1:
90
+ #st.button('Previous Frame', on_click=button_click)
91
  st.button('Change Batch', on_click=button_click)
92
  st.button('Find similar parts', on_click=find)
93