rvouyaa commited on
Commit
8a1fa4c
·
verified ·
1 Parent(s): 22e4120

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +5 -1
src/streamlit_app.py CHANGED
@@ -117,7 +117,11 @@ st.markdown("Bandingkan rute tercepat antara **Drive** dan **Bus** dari titik-ti
117
 
118
  with st.sidebar:
119
  st.header("📍 Input Rute")
120
- gdf_nodes, gdf_edges, gdf_poi = load_all_data()
 
 
 
 
121
  name_list = sorted(gdf_poi['name'].dropna().unique().tolist())
122
  start_name = st.selectbox("Pilih Lokasi Awal:", name_list)
123
  end_name = st.selectbox("Pilih Lokasi Tujuan:", name_list, index=1)
 
117
 
118
  with st.sidebar:
119
  st.header("📍 Input Rute")
120
+ data = load_all_data()
121
+ gdf_nodes = data["road_nodes"]
122
+ gdf_edges = data["road_edges"]
123
+ gdf_poi = data["buildings"]
124
+
125
  name_list = sorted(gdf_poi['name'].dropna().unique().tolist())
126
  start_name = st.selectbox("Pilih Lokasi Awal:", name_list)
127
  end_name = st.selectbox("Pilih Lokasi Tujuan:", name_list, index=1)