Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|