Skip to content

Commit

Permalink
Deploy to GitHub Pages e795f93
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Nov 13, 2024
1 parent 428c96a commit d13b10c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chat/bioimage-model-zoo-extension.imjoy.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

def search_item(item: Dict[str, Any], keywords: List[str]) -> bool:
search_fields = [item.get('id', ''), item.get('nickname', ''), item.get('name', ''),
item.get('nickname_icon', ''), item.get('license', ''), item.get('description', '')
item.get('nickname_icon', ''), item.get('license', ''), item.get('description', ''), item.get('created')
] + [tag for tag in item.get('tags', [])]
search_fields += [author['name'] for author in item.get('authors', [])]
return any(matches_keywords(field, keywords) for field in search_fields)
Expand All @@ -64,7 +64,7 @@
return filtered_items

async def load_model_info():
response = await fetch("https://bioimage-io.github.io/collection-bioimage-io/collection.json")
response = await fetch("https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/collection.json")
model_info = await response.json()
model_info = model_info.to_py()
resource_items = model_info['collection']
Expand Down

0 comments on commit d13b10c

Please sign in to comment.