This project is a Fake Account Detector developed using Flask, Keras, and machine learning. The system is designed to identify fake accounts on social media or websites by analyzing patterns and user behavior data. It uses a trained machine learning model (saved as a .keras file) to make predictions based on user input.
Make sure you're in the right directory before running commands:
cd C:\github\Social-Media-Integrity-ML-and-NLP-Approaches-to-Fake-Profile-Detection
If you haven’t set up a virtual environment yet, do it now:
python -m venv venv
venv\Scripts\activate # On Windows
✅ Make sure your virtual environment is activated (you should see
(venv)
in the terminal).
python -m pip install --upgrade pip
Installing these first helps prevent version conflicts:
pip install flask pandas numpy tensorflow scikit-learn gender-guesser
- If
requirements.txt
containsastropy==7.0.0
, replace it with:astropy==6.1.7
- Save the file before proceeding.
Once core packages are installed, install the rest:
pip install -r requirements.txt
Check if all required packages are installed:
pip list
✅ Make sure the following are installed:
Flask
pandas
numpy
tensorflow
scikit-learn
gender-guesser
Now, navigate to the backend directory and start the app:
cd backend
python app.py
If you get an error like ModuleNotFoundError: No module named 'X'
, install it manually:
pip install X # Replace 'X' with the missing module name
If TensorFlow is causing problems, install a stable version:
pip install tensorflow==2.10.0
If things are still broken, try starting fresh:
rmdir /s /q venv # Deletes existing venv (Windows)
python -m venv venv
venv\Scripts\activate
pip install --upgrade pip
pip install flask pandas numpy tensorflow scikit-learn gender-guesser
pip install -r requirements.txt
- Always activate the virtual environment before running
app.py
. - Keep
requirements.txt
updated with the correct versions of dependencies. - If facing issues, check the error logs and install missing dependencies manually.