Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 3.75 KB

File metadata and controls

79 lines (52 loc) · 3.75 KB

Gender Classification Web App Using FLASK

This project aims to detect/predict the gender of individuals from their names using Machine Learning algorithms and deploying the Machine Learning model using FLASK.

Algorithms Used:

  • Decision Tree
  • Naive Bayes

Dataset

I have created a dataset "Names_dataset.csv" by combining three different datasets namely Indian male names, Indian female names and English names.

How to run this model with Flask

Step 1: Install latest version of Python

Step 2: Clone this repository in your systems


Step 3: Creation of a directory and virtual environment

Type the following commands in the command prompt.

The above command "py -3 -m venv venv" is for virtual environment creation.

Step 4: Activation

Now type the following command in the command prompt to activate the virtual environment.

Step 5: Install FLASK


Step 6: Install the packages


pip install flask_bootstrap

pip install pandas

pip install sklearn

Step 7: Set FLASK_APP and run the flask


Step 8: Go to http://127.0.0.1:5000/ in the browser

After running the above command copy the address provided by the prompt after successful execution of the application and paste it in the browser, click enter to see the output.

The output would be the following:


image

Step 9: Enter any name in the input field and click the "Predict" button to see the results


image

RESULT:


image

More Prediction Results: