This chatbot application integrates LaMini-LM with a FastAPI backend and Streamlit frontend.
Begin by downloading ALL necessary files from the LaMini-LM model page on Hugging Face. Ensure these files are placed within the model directory located here: Model Folder.
To get your chatbot application up and running, follow these steps:
-
Docker Setup:
- Ensure Docker is installed on your system. If not, download and install it from the official Docker website.
- Navigate to the root directory of the project where the
docker-compose.ymlfile is located.
-
Build and Run the Docker Containers:
- Execute the following command in your terminal:
docker compose up --build - This command builds the Docker images and starts the containers necessary for the application.
- Execute the following command in your terminal:
-
Understanding IP Addresses:
- When Streamlit runs within the Docker container, it may print an IP address to the console.
- Important: This address is internal to the Docker container and is not the correct address to access the application externally.
- To access the application, you need to find your machine's network IP address.
-
Obtaining the Network IP Address:
- Use the
ifconfigcommand on Unix-based systems oripconfigon Windows to find your network IP address. - Look for an IP address under the
inetfield that is different from127.0.0.1.
- Use the
-
Accessing the Application:
- Open your web browser.
- Enter your network IP address followed by
:8501in the address bar (e.g.,192.168.1.2:8501). - You should now see the FastAPI-Chatbot interface, ready for interaction!
