Determining an individual's Prakriti, a fundamental concept in Ayurveda has long been a challenging and intricate process. Traditional Prakriti assessment methods required extensive consultations with Ayurvedic practitioners, making it arduous and time-consuming. Prikriti Determine features a Machine learning-based chatbot capable of efficiently determining a user's Prakriti type. The chatbot assesses various facets of their body and mind by engaging users in a friendly conversation and asking a series of well-crafted questions. This approach allows for a more consistent and objective Prakriti analysis. Based on the Prakriti, the chatbot gives diet recommendations.
Watch the Output video 👉 Video
-
Make Sure you have installed the Python and version should be >=3.10.
-
Navigate to the bot Folder using command
cd bot
then create the Models
Folder inside it
mkdir Models
-
Create Virtual Environment using virtualenv or any package you need here I'm preferring
virtualenv
-
Install the
virtualenv
package using pippip install virtualenv
-
Create the Virtual Environment
virtualenv project
-
Activate the Virtual Environment.
For windows :
project/Scripts/activate
For Ubuntu :
source project/bin/activate
-
-
Before installing packages, first download the
GTK Runtime
in your system. These Runtime Environment will help you to create the PDF from the HTML also the backend of the packageweasyprint
Download the Runtime Environment for Windows from Here GTK Runtime
Other Operating System refer to the Installation process of the
weasyprint
package Read here -
Install the packages required to run the project.
pip install tensorflow pandas nltk scikit-learn sqlalchemy fastapi uvicorn websockets weasyprint
Note : Wait for the packages to be installed if you encountered any error or problems try to install the packages one by one.
-
Train the Chatbot Model on the same terminal. Make sure you are in the bot folder in terminal.
For Windows:
python Training/botmodel.py
For Ubuntu:
python3 Training/botmodel.py
-
Train the Prakriti Model on the same Terminal.
For Windows:
python Training/prakritimodel.py
For Ubuntu:
python3 Training/prakritimodel.py
-
Run the API to serve both trained Model to connect with the Frontend.
For Windows:
python app.py
For Ubuntu:
python3 app.py
-
Wait for the API to startup then copy the url in which the api is running.
e.g:
https://127.0.0.1:8000
only copy part from127.0.0.1:8000
The URL may be different for different OS make a note of it.
The API is Running Successfully 😃😃😃😃.
-
Make sure you have installed Nodejs in your system.
-
Navigate to
frontend
folder.
cd frontend
- Install the packages.
npm i
- After Installing all the packages make some changes in
.env
file which is located infrontend
folder.
VITE_API=ws://127.0.0.1:8000
Paste your copied url or server url in place of 127.0.0.1:8000
- Run the Frontend.
npm run dev
The frontend is Running Successfully 😃😃😃.
You have successfully setup your project.