Is it possible to deploy this app to a webserver (via pyodide)?

#2
by asmith26 - opened

Hi,

I thought I'd try deploy this app on a web server (i.e. not a panel server) by converting the script withpanel convert app.py --to pyodide-worker --out web_files/. Unfortunately when I try to submit a chat message, I get the following error (in the browser debug console - note I'm not using the mistral API, but instead running a local LLM server):

Firefox can’t establish a connection to the server at ws://localhost:8080/
The connection to ws://localhost:8080/ was interrupted while the page was loading.

It looks like there's a problem around websockets or something, just thought I'd ask if you had any thoughts on what might be causing this error/how to fix?

Many thanks for any help!

Hi, I'm not sure. If you post in https://discourse.holoviz.org/ you may get a reply from someone who understands pyodide more.

Sign up or log in to comment