Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face-Aging-Webapp

Face Aging Webapp, using Flask and Only a Matter of Style.

Before After
demo_before demo_after

Setup

Replicate account

Installation

You need Python 3.12 and Pip.

# Clone this repository
git clone git@github.com:Amustache/Face-Aging-Webapp.git

# Go into the folder
cd Face-Aging-Webapp

# Create a virtual environment
python -m venv env

# Activate said environment
source env/bin/activate

# Install dependencies
pip install -r requirements.txt

# Create config file
cp config.py.dist config.py

Configuration

Edit the config.py file with the following:

  • SECRET_KEY: Some random key.
  • REPLICATE_API_TOKEN: Your Replicate API token.
  • UPLOAD_FOLDER: Where you want the pics to go.
  • ALLOWED_EXTENSIONS: What kind of pic you want.
  • SMTP_SERVER: Your mail server.
  • SMTP_PORT: Your mail server port.
  • SMTP_USERNAME: Your mail server username.
  • SMTP_PASSWORD: Your mail server password.
  • SMTP_SENDER: What the sender will look like.
  • DEBUG: True if dev, False if prod.
  • DEMO: True to use a dummy picture, False to use the camera.

Usage

⚠️ Note: The first time you use this, the Replicate model may take some time to boot up. It is normal.

Learn more here: https://replicate.com/docs/how-does-replicate-work#cold-boots.

Licenses

About

Face Aging Webapp, using Flask and Only a Matter of Style

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages