Spaces:
Build error
Build error
Commit
·
8015cdb
1
Parent(s):
fca50af
app.py updates
Browse files
app.py
CHANGED
|
@@ -35,11 +35,10 @@ if "draw" not in st.session_state:
|
|
| 35 |
def button_click():
|
| 36 |
st.session_state["img"]=np.random.randint(100)
|
| 37 |
st.session_state["draw"] = False
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
|
| 44 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|
| 45 |
center = point
|
|
@@ -75,6 +74,7 @@ if value is not None:
|
|
| 75 |
|
| 76 |
|
| 77 |
st.button('Random frame', on_click=button_click)
|
|
|
|
| 78 |
|
| 79 |
st.write(st.session_state["img"])
|
| 80 |
st.write(st.session_state["points"])
|
|
|
|
| 35 |
def button_click():
|
| 36 |
st.session_state["img"]=np.random.randint(100)
|
| 37 |
st.session_state["draw"] = False
|
| 38 |
+
|
| 39 |
+
def find():
|
| 40 |
+
st.image(ds[st.session_state[0]]['image'])
|
| 41 |
+
|
|
|
|
| 42 |
|
| 43 |
def get_ellipse_coords(point):# tuple[int, int]) -> tuple[int, int, int, int]):
|
| 44 |
center = point
|
|
|
|
| 74 |
|
| 75 |
|
| 76 |
st.button('Random frame', on_click=button_click)
|
| 77 |
+
st.button('Find simalar parts', on_click=find)
|
| 78 |
|
| 79 |
st.write(st.session_state["img"])
|
| 80 |
st.write(st.session_state["points"])
|