If you're running the project for the first time, make a Virtual Environment by running this command:
python -m venv chatbot_envOn UNIX based systems, run the following command to activate the virual environment
source chatbot_env/bin/activateOn Windows, run the following command to activate the virtual environment
chatbot_env\Scripts\activateInstall the required libraries in the Virtual Environment by running this command
pip install -r requirements.txtThe API is built on FastAPI in Python.
The API accepts only POST requests, so you need to make a request by the following set of commands.
python main.py
uvicorn main:app --reloadThis will run the API, most probably on the localhost or http://127.0.0.1 on port 8080. Now to make a request, you need to add a request body. To simply do it, you can go to http://127.0.0.1/docs, this will open the Swagger UI interactive window, and click Try it out to try with different input_text parameters, and then Execute the API call.