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

Commit

Permalink
chore: small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
d116626 committed Jan 24, 2024
1 parent c47061a commit ae2284d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/hide/🗺️ Pontos Críticos em Tempo Real.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def create_map(chart_data):
return m


@st.cache_data
@st.cache_data(ttl=60)
def load_pontos_criticos():
return pd.read_csv("data/database/pontos_criticos.csv")


@st.cache_data
@st.cache_data(ttl=60)
def load_precipitacao():
precipitacao_15min = pd.read_json(
"https://api.dados.rio/v2/clima_pluviometro/precipitacao_15min/"
Expand Down
2 changes: 1 addition & 1 deletion app/pages/📷 Pontos de Alagamento | Vision AI.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
st.markdown("# Pontos de Alagamento | Vision AI")


@st.cache_data
@st.cache_data(ttl=60)
def load_alagamento_detectado_ia():
raw_api_data = requests.get(
"https://api.dados.rio/v2/clima_alagamento/alagamento_detectado_ia/"
Expand Down

0 comments on commit ae2284d

Please sign in to comment.