diff --git a/public/chat/index.html b/public/chat/index.html index 9b90ce6c..18613e43 100644 --- a/public/chat/index.html +++ b/public/chat/index.html @@ -1041,6 +1041,10 @@

Welcome to BioImage.IO Chatbot

$('#mount-folder-btn').show(); if (mountedFolder) { await worker.mount("/mnt", mountedFolder); + $('#mount-folder-btn').text(`Mount Files (${mountedFolder.name})`); + } + else{ + $('#mount-folder-btn').text(`Mount Files`); } worker = w; console.log("Worker created:", worker); @@ -1520,6 +1524,7 @@

Welcome to BioImage.IO Chatbot

chat_history.length = 0; // Clear the chat history code = ''; // Reset code error_message = ''; // Reset error message + mountedFolder = null; $('.message-holder').empty(); // Clear the messages initializeService(); }