This project is a web application built with Flask that assesses personality based on user responses to a set of questions. The application presents questions to the user, collects their responses, and generates a personality chart based on their answers.
- User-friendly interface for answering personality assessment questions.
- Data visualization using Chart.js to display personality traits.
- Backend processing of user responses to generate personality insights.
- Integration with two K-means clustering models stored in the
models
directory for personality analysis.
- app.py: Flask application file that defines routes and handles user interactions.
- Test.py: Python script containing functions for generating personality charts based on user responses.
- questions.csv: CSV file containing the questions for the personality assessment.
- css/: Folder containing CSS files for styling the web interface.
- templates/: Folder containing HTML templates for rendering the web pages.
- models/: Folder containing two K-means clustering models used for personality analysis.
-
Clone the repository:
git clone https://github.com/pravincoder/personality_app.git
-
Install dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Access the application in your web browser at
http://localhost:5000
.
- Answer the questions presented on the web interface.
- Submit your responses.
- View the generated personality chart based on your responses.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/new-feature
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/new-feature
). - Create a new Pull Request.
This project is licensed under the MIT License.
- This project was inspired by my friend in our Mini Project Mumbai university.
- Thanks to the Flask and Chart.js communities for providing excellent resources and documentation.
- Thanks to kaggle dataset (source)[!https://www.kaggle.com/datasets/tunguz/big-five-personality-test/data]