Update app.py
Browse files
app.py
CHANGED
|
@@ -2,13 +2,9 @@ import streamlit as st
|
|
| 2 |
import time
|
| 3 |
import os
|
| 4 |
from utils.astar_algo import get_route
|
| 5 |
-
import osmnx as ox
|
| 6 |
-
|
| 7 |
|
| 8 |
html_file_path = "generated_map.html"
|
| 9 |
|
| 10 |
-
graph=ox.load_graphml("data/mumbai_updated.graphml")
|
| 11 |
-
|
| 12 |
st.set_page_config(page_title="SafeMaps", layout="wide")
|
| 13 |
|
| 14 |
st.title("SafeMaps - Find the Safest Route")
|
|
@@ -25,7 +21,7 @@ if st.button("Show Route"):
|
|
| 25 |
if os.path.exists(html_file_path):
|
| 26 |
os.remove(html_file_path)
|
| 27 |
start_time = time.time()
|
| 28 |
-
get_route(
|
| 29 |
|
| 30 |
while not os.path.isfile(html_file_path):
|
| 31 |
print("waiting")
|
|
|
|
| 2 |
import time
|
| 3 |
import os
|
| 4 |
from utils.astar_algo import get_route
|
|
|
|
|
|
|
| 5 |
|
| 6 |
html_file_path = "generated_map.html"
|
| 7 |
|
|
|
|
|
|
|
| 8 |
st.set_page_config(page_title="SafeMaps", layout="wide")
|
| 9 |
|
| 10 |
st.title("SafeMaps - Find the Safest Route")
|
|
|
|
| 21 |
if os.path.exists(html_file_path):
|
| 22 |
os.remove(html_file_path)
|
| 23 |
start_time = time.time()
|
| 24 |
+
get_route(source, destination, safety_percentage)
|
| 25 |
|
| 26 |
while not os.path.isfile(html_file_path):
|
| 27 |
print("waiting")
|