Circularmachines
commited on
Commit
·
fca50af
1
Parent(s):
c9c47ec
app.py updates
Browse files
app.py
CHANGED
@@ -34,11 +34,12 @@ if "draw" not in st.session_state:
|
|
34 |
|
35 |
def button_click():
|
36 |
st.session_state["img"]=np.random.randint(100)
|
|
|
37 |
#current_image=ds[r]['image']
|
38 |
#st.write(str(r))
|
39 |
-
st.session_state["points"] = (200,200)
|
40 |
#value = streamlit_image_coordinates(current_image, key="pil")
|
41 |
-
|
42 |
|
43 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|
44 |
center = point
|
@@ -77,7 +78,7 @@ st.button('Random frame', on_click=button_click)
|
|
77 |
|
78 |
st.write(st.session_state["img"])
|
79 |
st.write(st.session_state["points"])
|
80 |
-
|
81 |
#st.write(value["x"], value["y"])
|
82 |
|
83 |
#else:
|
|
|
34 |
|
35 |
def button_click():
|
36 |
st.session_state["img"]=np.random.randint(100)
|
37 |
+
st.session_state["draw"] = False
|
38 |
#current_image=ds[r]['image']
|
39 |
#st.write(str(r))
|
40 |
+
#st.session_state["points"] = (200,200)
|
41 |
#value = streamlit_image_coordinates(current_image, key="pil")
|
42 |
+
|
43 |
|
44 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|
45 |
center = point
|
|
|
78 |
|
79 |
st.write(st.session_state["img"])
|
80 |
st.write(st.session_state["points"])
|
81 |
+
st.write(st.session_state["draw"])
|
82 |
#st.write(value["x"], value["y"])
|
83 |
|
84 |
#else:
|