SpatialWebAgent commited on
Commit
85530e8
·
verified ·
1 Parent(s): 65e60ed

Update pages/2_Tagger.py

Browse files
Files changed (1) hide show
  1. 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
- print(geojson, 'gggggg')
392
- draw_location(geojson)
393
- # print(coords[0], coords[1], 'cccooo')
394
- print(geojson, 'ccoo')
 
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")