Spaces:
Build error
Build error
Commit
·
ca45677
1
Parent(s):
f9fb74c
app.py updates
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ with Image.open("kitty.jpeg") as img:
|
|
| 36 |
# Draw an ellipse at each coordinate in points
|
| 37 |
for point in st.session_state["points"]:
|
| 38 |
coords = get_ellipse_coords(point)
|
| 39 |
-
draw.rectangle(coords, outline="green")
|
| 40 |
|
| 41 |
value = streamlit_image_coordinates(img, key="pil")
|
| 42 |
|
|
@@ -44,5 +44,5 @@ with Image.open("kitty.jpeg") as img:
|
|
| 44 |
point = value["x"], value["y"]
|
| 45 |
|
| 46 |
if point not in st.session_state["points"]:
|
| 47 |
-
st.session_state["points"]
|
| 48 |
st.experimental_rerun()
|
|
|
|
| 36 |
# Draw an ellipse at each coordinate in points
|
| 37 |
for point in st.session_state["points"]:
|
| 38 |
coords = get_ellipse_coords(point)
|
| 39 |
+
draw.rectangle(coords, outline="green",width=2)
|
| 40 |
|
| 41 |
value = streamlit_image_coordinates(img, key="pil")
|
| 42 |
|
|
|
|
| 44 |
point = value["x"], value["y"]
|
| 45 |
|
| 46 |
if point not in st.session_state["points"]:
|
| 47 |
+
st.session_state["points"]=[point]
|
| 48 |
st.experimental_rerun()
|