OOlajide commited on
Commit
5d6e075
1 Parent(s): 400439c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,9 +4,9 @@ import pandas as pd
4
 
5
  st.set_page_config(layout="wide")
6
 
7
- @st.experimental_singleton
8
  def load_data():
9
- df = pd.read_csv('nyc_crimes.csv')
10
  return df
11
 
12
  st.write(
@@ -23,7 +23,7 @@ st.pydeck_chart(pdk.Deck(
23
  initial_view_state=pdk.ViewState(
24
  latitude=40.7,
25
  longitude=-74.0,
26
- zoom=8,
27
  pitch=50,
28
  ),
29
  layers=[
 
4
 
5
  st.set_page_config(layout="wide")
6
 
7
+ @st.cache(allow_output_mutation=True)
8
  def load_data():
9
+ df = pd.read_csv("https://raw.githubusercontent.com/OOlajide/nyc_crime_dataset/main/nyc_crimes.csv")
10
  return df
11
 
12
  st.write(
 
23
  initial_view_state=pdk.ViewState(
24
  latitude=40.7,
25
  longitude=-74.0,
26
+ zoom=9,
27
  pitch=50,
28
  ),
29
  layers=[