We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9470bba commit 3138159Copy full SHA for 3138159
demo/app.py
@@ -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
+ 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"],
@@ -158,8 +160,6 @@ def upload_results(output_path):
158
160
for new in Path(output_path).glob("*.json"):
159
161
handle_polygon(new)
162
- logger.add(StreamlitHandler(), format="<level>{message}</level>")
-
163
upload_results(output_path)
164
165
st.warning("No `new` polygons were found. Try a different location.")
0 commit comments