sdk: docker
app_port: 7860
Beauty-Filter-Smart-Mirror-Audit
This repository combines an interactive Smart Mirror web application with a Python analysis pipeline to measure how Instagram and IG-like beauty filters alter facial features, skin tone, and downstream predictions of race, age, and gender.
Running the Beauty Filter Smart Mirror Application
Navigate to the project root directory cd /Beauty-Filter-Smart-Mirror-Audit
Create a virtual environment (if not already created) python3 -m venv venv
Activate the virtual environment source venv/bin/activate
Install all required dependencies pip install -r requirements_all.txt
Run the application from the project root /Beauty-Filter-Smart-Mirror-Audit
Start the Flask application from the root directory: python app/app.py
read more about how to setup the environment in: SETUP.txt
Important Note
The application must be run from the project root directory (Beauty-Filter-Smart-Mirror-Audit). The code relies on relative file paths to load the TensorFlow Lite models stored in the models/ directory. Running the app from another directory may result in model-loading errors.
Folder Structure and .keep Files
This repository uses empty .keep files to preserve directory structure in Git.
Git does not track empty folders by default. Some directories in this project
(e.g., data/ and models/) are intentionally kept empty in the repository
because they are populated locally with large files (datasets or model weights)
that should not be committed.
The .keep files allow these folders to exist consistently across branches
and merges without tracking their contents.
Downloading Data (Dropbox)
Large files are not stored in the repo. Use the download_data script:
pip install requests
Download multiple ZIPs at once:
python scripts/download_data.py \
--dropbox_urls "<LINK_1>" "<LINK_2>" \
--output_dir data/ \
--zip_name dataset