Spaces:
Running
Running
Update pages/2_Tagger.py
Browse files- pages/2_Tagger.py +5 -4
pages/2_Tagger.py
CHANGED
@@ -388,10 +388,11 @@ if mode == "geocombo":
|
|
388 |
# geojson = llm_coding.get_geojson(None, coords[0], coords[1])
|
389 |
|
390 |
geojson = call_backend(text)['data'][0]
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
|
|
395 |
else:
|
396 |
ent_str = params["entity"]
|
397 |
ent_span = create_span(doc, ent_str, label="ENTITY")
|
|
|
388 |
# geojson = llm_coding.get_geojson(None, coords[0], coords[1])
|
389 |
|
390 |
geojson = call_backend(text)['data'][0]
|
391 |
+
try:
|
392 |
+
draw_location(geojson)
|
393 |
+
except:
|
394 |
+
st.markdown('**The selected sentences do not contain final positioning logic. You can still use the first table on the first page for independent entity positioning.**')
|
395 |
+
|
396 |
else:
|
397 |
ent_str = params["entity"]
|
398 |
ent_span = create_span(doc, ent_str, label="ENTITY")
|