pikto commited on
Commit
fd0a9ec
·
1 Parent(s): a4c2a65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -36,6 +36,19 @@ st.image("Gifs/boat_new.gif")
36
 
37
  c30, c31, c32 = st.columns([0.2, 0.1, 3])
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  with c30:
40
 
41
  st.caption("")
 
36
 
37
  c30, c31, c32 = st.columns([0.2, 0.1, 3])
38
 
39
+ #################
40
+ @st.cache_data # 👈 Add the caching decorator
41
+ def load_data(url):
42
+ df = pd.read_csv(url)
43
+ return df
44
+
45
+ df = load_data("https://github.com/plotly/datasets/raw/master/uber-rides-data1.csv")
46
+ st.dataframe(df)
47
+
48
+ st.button("Rerun")
49
+
50
+ ################
51
+
52
  with c30:
53
 
54
  st.caption("")