Spaces:
Runtime error
Runtime error
github-actions[bot]
commited on
Commit
·
4adb3f8
1
Parent(s):
550071e
Sync with https://github.com/mozilla-ai/osm-ai-helper
Browse files
app.py
CHANGED
|
@@ -116,6 +116,8 @@ def upload_results(output_path):
|
|
| 116 |
comment = f"Add Swimming Pools. Contributed by {contributor}"
|
| 117 |
else:
|
| 118 |
comment = "Add Swimming Pools"
|
|
|
|
|
|
|
| 119 |
changeset = upload_osm(
|
| 120 |
results_dir=output_path / "keep",
|
| 121 |
client_id=os.environ["OSM_CLIENT_ID"],
|
|
@@ -158,8 +160,6 @@ if st.button("Run Inference") and lat_lon:
|
|
| 158 |
for new in Path(output_path).glob("*.json"):
|
| 159 |
handle_polygon(new)
|
| 160 |
|
| 161 |
-
logger.add(StreamlitHandler(), format="<level>{message}</level>")
|
| 162 |
-
|
| 163 |
upload_results(output_path)
|
| 164 |
else:
|
| 165 |
st.warning("No `new` polygons were found. Try a different location.")
|
|
|
|
| 116 |
comment = f"Add Swimming Pools. Contributed by {contributor}"
|
| 117 |
else:
|
| 118 |
comment = "Add Swimming Pools"
|
| 119 |
+
logger.add(StreamlitHandler(), format="<level>{message}</level>")
|
| 120 |
+
|
| 121 |
changeset = upload_osm(
|
| 122 |
results_dir=output_path / "keep",
|
| 123 |
client_id=os.environ["OSM_CLIENT_ID"],
|
|
|
|
| 160 |
for new in Path(output_path).glob("*.json"):
|
| 161 |
handle_polygon(new)
|
| 162 |
|
|
|
|
|
|
|
| 163 |
upload_results(output_path)
|
| 164 |
else:
|
| 165 |
st.warning("No `new` polygons were found. Try a different location.")
|