File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -797,8 +797,8 @@ <h3 class="text-center">Welcome to BioImage.IO Chatbot</h3>
797797 imjoyApi = imjoy . api ;
798798 if ( assistantName === 'Melman' ) {
799799 console . log ( "Loading the Model Zoo extension..." )
800- const baseUrl = location . href . split ( '?' ) [ 0 ]
801- const plugin = await imjoyApi . loadPlugin ( `${ baseUrl } /bioimage-model-zoo-extension.imjoy.html` )
800+ const baseUrl = location . origin
801+ const plugin = await imjoyApi . loadPlugin ( `${ baseUrl } /chat/ bioimage-model-zoo-extension.imjoy.html` )
802802 await plugin . setup ( ) ;
803803 console . log ( "Model Zoo extension loaded." )
804804 }
Original file line number Diff line number Diff line change @@ -195,12 +195,15 @@ export async function setupBioEngine() {
195195 app . addMenuItem ( {
196196 label : "🤖 BioImage.IO Chatbot" ,
197197 async callback ( ) {
198+ await api . showMessage ( "Loading BioImage.IO Chatbot..." )
198199 await api . createWindow ( {
199- src : "https://bioimage.io/chat?disable-assistant-switch=true " ,
200+ src : "https://bioimage.io/chat" ,
200201 name : "BioImage.IO Chatbot"
201202 } ) ;
203+ const baseUrl = location . origin
204+ await api . showMessage ( "Loading BioImage Model Zoo extension for the chatbot, this may take a while..." )
202205 await app . loadPlugin (
203- "https://raw.githubusercontent.com/ bioimage-io/bioimageio-chatbot/main/bioimageio_chatbot/static/bioimage- model-zoo-extension.imjoy.html"
206+ ` ${ baseUrl } /chat/ bioimage-model-zoo-extension.imjoy.html`
204207 ) ;
205208 }
206209 } ) ;
You can’t perform that action at this time.
0 commit comments