Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
chore: clean log
Browse files Browse the repository at this point in the history
  • Loading branch information
d116626 committed Jan 14, 2024
1 parent 60f957b commit 291a89e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/📣 Real-time flooding detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ def get_icon_color(label: Union[bool, None]):
ID: {chart_data.iloc[i]['id_camera']}""",
# change icon color according to status
icon=folium.Icon(
color=get_icon_color(chart_data.iloc[i]["ai_classification"][0]["label"])
color=get_icon_color(
chart_data.iloc[i]["ai_classification"][0].get("label", None)
)
),
# icon=folium.CustomIcon(
# icon_data["url"],
Expand Down

0 comments on commit 291a89e

Please sign in to comment.