This repository contains a chatbot developed for the MMTD (Myanmar Data Tech) project. The chatbot is built based on the principles outlined in the course "Building Generative AI Applications with Gradio" by deeplearning.ai.
To test the chatbot on your local machine, follow these steps:
- Create an account on Hugging Face.
- Generate an API key in your Hugging Face account settings.
- Create an inference endpoint on Hugging Face's Inference Endpoints. Note that you'll need a credit card to register an endpoint.
- Hugging Face API Token
- Hugging Face Endpoint
-
Clone this repository to your local machine.
-
Create a
.envfile in the repository root with the following format:HF_API_KEY=your_api_key HF_API_ENDPOINT=your_endpoint PORT=your_desired_port -
(Optional) Create a virtual environment for this project.
-
Install the required packages by running:
pip install -r requirements.txt
-
Start the chatbot by running:
python chatbot.py
-
Once the chatbot is running, you will see a prompt with the following information:
Running on local URL: http://127.0.0.1:8080 Running on public URL: https://ac3668855078ee16a3.gradio.live
Now you can enjoy testing the chatbot!
Note: This readme assumes basic familiarity with Git, Python, and command-line interfaces.
