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

Commit

Permalink
add dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoCarabetta committed Nov 14, 2023
1 parent c32a2d5 commit 37b23d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/📣 Alagamentos em Tempo Real.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@
import pydeck as pdk
import streamlit as st
from streamlit_folium import st_folium
from streamlit_extras.app_logo import add_logo

st.set_page_config(layout="wide", page_title="Alagamentos em Tempo Real")

st.image("./data/logo/logo.png", width=300)

st.markdown("# Alagamentos em Tempo Real usando IA")
st.markdown("##### Detector de alagamentos em tempo real usando a API do OpenAI")
st.markdown(
"""Esta aplicação usa as câmeras instaladas na cidade para detectar alagamentos e
bolsões de água em tempo real. A AI é ativada automaticamente nas regiões que
estão chovendo segundo os pluviômetros da cidade. Ela usa o modelo GPT-4 Vision para
identificar alagamentos em imagens."""
)

tmp_data_path = Path(__file__).parent.parent / "data" / "cameras_h3_1.csv"
chart_data = pd.read_csv(tmp_data_path)[:100]
Expand All @@ -23,7 +31,6 @@
m = folium.Map(
location=[chart_data["latitude"].mean(), chart_data["longitude"].mean()],
zoom_start=11,
# tiles="Stamen Terrain",
)

for i in range(0, len(chart_data)):
Expand Down
Binary file added data/logo/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
streamlit = "^1.28.1"
folium = "0.14.0"
streamlit-folium = "0.15.0"


[build-system]
Expand Down

0 comments on commit 37b23d4

Please sign in to comment.