Commit
·
50f547a
1
Parent(s):
ac39450
app.py updates
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ ds = load_dataset("Circularmachines/batch_indexing_machine_100_small_imgs", spli
|
|
23 |
#"# :dart: Streamlit Image Coordinates: Image Update"
|
24 |
|
25 |
if "points" not in st.session_state:
|
26 |
-
st.session_state["points"] = []
|
27 |
|
28 |
if "img" not in st.session_state:
|
29 |
st.session_state["img"] = 0
|
@@ -41,7 +41,7 @@ def button_click():
|
|
41 |
st.session_state["img"]=np.random.randint(100)
|
42 |
current_image=ds[r]['image']
|
43 |
#st.write(str(r))
|
44 |
-
st.session_state["points"] = []
|
45 |
#value = streamlit_image_coordinates(current_image, key="pil")
|
46 |
st.session_state["draw"]=False
|
47 |
|
|
|
23 |
#"# :dart: Streamlit Image Coordinates: Image Update"
|
24 |
|
25 |
if "points" not in st.session_state:
|
26 |
+
st.session_state["points"] = [[200,200]]
|
27 |
|
28 |
if "img" not in st.session_state:
|
29 |
st.session_state["img"] = 0
|
|
|
41 |
st.session_state["img"]=np.random.randint(100)
|
42 |
current_image=ds[r]['image']
|
43 |
#st.write(str(r))
|
44 |
+
st.session_state["points"] = [[200,200]]
|
45 |
#value = streamlit_image_coordinates(current_image, key="pil")
|
46 |
st.session_state["draw"]=False
|
47 |
|