jattokatarratto commited on
Commit
a4f6f1d
·
verified ·
1 Parent(s): ce4ad6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1109,6 +1109,10 @@ def getUrlBioAndAllOtherBioConcepts(word, args, key_virtuoso, cache_map_virtuoso
1109
  )
1110
  ]
1111
 
 
 
 
 
1112
  # Specify the columns you want to keep
1113
  columns_to_keep = ["score", "from", "to", "prefLabel", "text", "@id"]
1114
 
 
1109
  )
1110
  ]
1111
 
1112
+ if df_expanded.empty:
1113
+ # nothing found from Bioportal
1114
+ return None, None, None, None, None, cache_map_virtuoso
1115
+
1116
  # Specify the columns you want to keep
1117
  columns_to_keep = ["score", "from", "to", "prefLabel", "text", "@id"]
1118