Skip to content

Commit

Permalink
Merge branch 'support-at-assistant'
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Jun 5, 2024
2 parents 52b9901 + 663a78e commit 382fa0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions bioimageio_chatbot/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1503,11 +1503,14 @@ <h3 class="text-center">Welcome to BioImage.IO Chatbot</h3>

const atAssistantButton = document.getElementById("at-buttons");
atAssistantButton.innerHTML = Object.values(allAssistants).map((a) => {
return `<li><a class="dropdown-item" data-assistant="${a.name}">${a.alias}(${a.name})</a></li>`
if(a.name !== assistantName)
return `<li><a class="dropdown-item at-button" data-assistant="${a.name}">${a.alias} (${a.name})</a></li>`
else
return ""
}).join("\n");

// Get all the dropdown items
const dropdownItems = document.querySelectorAll('.dropdown-item');
const dropdownItems = document.querySelectorAll('.at-button');

// Add a 'click' event listener to each dropdown item
dropdownItems.forEach(item => {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]

[project]
name = "bioimageio-chatbot"
version = "0.2.3"
version = "0.2.4"
readme = "README.md"
description = "Your Personal Assistant in Computational BioImaging."
dependencies = [
Expand Down

0 comments on commit 382fa0b

Please sign in to comment.