A chatbot webapp with backend and frontend made using only Rust, the webapp is designed with TailwindCSS and the model used is an open source language model downloaded from HuggingFace.
The project is using CUDA acceleration for faster responses
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown
cargo install trunk cargo-leptos
npm install -D tailwindcss
You'll also need to download a model (in GGML format) of your choice that is supported by the Rustformers/llm Crate.
Replace the value of the MODEL_PATH
enviroment variable in the .env
file with the path to the model file
- run
npx tailwindcss -i ./input.css -o ./style/output.css --watch
in a terminal - this will buildstyle/output.css
and automatically rebuild when a change is detected ininput.css
- run
cargo leptos watch
in the project directory. - In in your browser, navigate to http://127.0.0.1:3000