Open de-illusionist opened 1 year ago
Hi @de-illusionist, thanks for the notification, sorry for the delayed answer I was away from keyboard all of August
The problem comes from jinja2, which is not finding the index.html
file in the templates
folder (which shows the chat web UI), when you try to use libre-chat
after installing it directly with pip install libre-chat
Which is surprising because I used pkg_resources
to pass the path. It works without issue when the package is installed from the source code (in dev, test and docker)
It is not a big problem, I did not wanted to use jinja2 on the long term.
I updated the main chatbot web UI, it is now implemented in python with gradio, which is less complex and easier to maintain
The fix will be present in the next release (0.0.6), in the meantime you can get it sooner by install from the main branch with pip install git+https://github.com/vemonet/libre-chat
Describe the bug
I pip installed your package, and I had my local ggml llama 7B chat model and I set up the chat.yml, with the model in the models folder, even put sentence transformer and vectors in their respective folder, all in one folder, and ran the test code as in the end of the README.md and I ran the code inside a conda environment and it gave me "TemplateNotFound: index.html" error. However when I checked the console it had already executed the llama model in the terminal, and then threw the error.. I figured it might be searching for the "index.html" in the "~/.local/lib/python3.10/site-packages/libre_chat/templates" folder in the home folder of my test code, so i copied it their but its still throwing the same error. Can you please help?
A little more exact error message:
Reproduction
No response
Operating System
Ubuntu 22.04
Libre Chat version
0.0.4
Additional context
No response