Spaces:
Sleeping
Sleeping
github-actions[bot]
commited on
Commit
·
66979e3
1
Parent(s):
a859142
Sync with https://github.com/mozilla-ai/osm-ai-helper
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def show_map():
|
|
36 |
super().__init__()
|
37 |
self._name = "LatLngPopup"
|
38 |
|
39 |
-
m = folium.Map(location=[42.
|
40 |
m.add_child(LatLngPopup())
|
41 |
|
42 |
st_folium(m, height=400, width=800)
|
@@ -54,7 +54,7 @@ def inference(lat_lon, margin):
|
|
54 |
with st.spinner("Running inference..."):
|
55 |
output_path, existing, new, missed = run_inference(
|
56 |
yolo_model_file="models/model.pt",
|
57 |
-
output_dir="results",
|
58 |
lat_lon=lat_lon,
|
59 |
margin=margin,
|
60 |
)
|
|
|
36 |
super().__init__()
|
37 |
self._name = "LatLngPopup"
|
38 |
|
39 |
+
m = folium.Map(location=[42.8075, -8.1519], zoom_start=8, tiles="OpenStreetMap")
|
40 |
m.add_child(LatLngPopup())
|
41 |
|
42 |
st_folium(m, height=400, width=800)
|
|
|
54 |
with st.spinner("Running inference..."):
|
55 |
output_path, existing, new, missed = run_inference(
|
56 |
yolo_model_file="models/model.pt",
|
57 |
+
output_dir="/tmp/results",
|
58 |
lat_lon=lat_lon,
|
59 |
margin=margin,
|
60 |
)
|