Spaces:
Runtime error
Runtime error
Commit
·
7ad7cf7
1
Parent(s):
0c5ae68
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ Created on Thu Jun 8 03:39:02 2023
|
|
4 |
|
5 |
@author: mritchey
|
6 |
"""
|
7 |
-
|
8 |
import pandas as pd
|
9 |
import numpy as np
|
10 |
import streamlit as st
|
@@ -106,7 +105,7 @@ def extract_vertices(gdf):
|
|
106 |
|
107 |
#Side Bar
|
108 |
address = st.sidebar.text_input(
|
109 |
-
"Address", "
|
110 |
date = st.sidebar.date_input("Date", pd.Timestamp(2021, 7, 14), key='date')
|
111 |
number_days_range = st.sidebar.selectbox(
|
112 |
'Within Day Range:', (5, 10, 30, 90, 180))
|
@@ -157,7 +156,6 @@ m = map_perimeters(gdf_cut, address)
|
|
157 |
indicents = list(gdf_cut['Incident'].values)
|
158 |
incident_edge = st.sidebar.selectbox(
|
159 |
'Find Distance to Closest Edge:', indicents)
|
160 |
-
|
161 |
vertices = extract_vertices(gdf_cut[gdf_cut['Incident']==incident_edge])
|
162 |
vertices["Lat_address"] = lat
|
163 |
vertices["Lon_address"] = lon
|
|
|
4 |
|
5 |
@author: mritchey
|
6 |
"""
|
|
|
7 |
import pandas as pd
|
8 |
import numpy as np
|
9 |
import streamlit as st
|
|
|
105 |
|
106 |
#Side Bar
|
107 |
address = st.sidebar.text_input(
|
108 |
+
"Address", "San Jose, CA")
|
109 |
date = st.sidebar.date_input("Date", pd.Timestamp(2021, 7, 14), key='date')
|
110 |
number_days_range = st.sidebar.selectbox(
|
111 |
'Within Day Range:', (5, 10, 30, 90, 180))
|
|
|
156 |
indicents = list(gdf_cut['Incident'].values)
|
157 |
incident_edge = st.sidebar.selectbox(
|
158 |
'Find Distance to Closest Edge:', indicents)
|
|
|
159 |
vertices = extract_vertices(gdf_cut[gdf_cut['Incident']==incident_edge])
|
160 |
vertices["Lat_address"] = lat
|
161 |
vertices["Lon_address"] = lon
|