GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Amustache/Face-Aging-Webapp: Face Aging Webapp, using Flask and Only a Matter of Style

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
static
static
 
 
templates
templates
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.py
app.py
 
 
config.py.dist
config.py.dist
 
 
requirements.txt
requirements.txt
 
 

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

  • In order to user this, you will need a Replicate account: https://replicate.com/.
  • Then, you will need an API token: https://replicate.com/account/api-tokens.

Installation

You need Python 3.12 and Pip.

# Clone this repository
git clone [email protected]: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

  • Start the webapp: python app.py
  • Access the webapp: http://127.0.0.1:5000

⚠️ 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

  • This repository is under GPL-3.0 license.
    • Said license is available here: https://github.com/Amustache/Face-Aging-Webapp/blob/master/LICENSE.
    • Code source is available here: https://github.com/Amustache/Face-Aging-Webapp/.
  • Flask is under BSD-3-Clause License.
    • Said license is available here: https://flask.palletsprojects.com/en/2.3.x/license/.
    • Code source is available here: https://github.com/pallets/flask.
  • SAM is under MIT license.
    • Said license is available here: https://github.com/yuval-alaluf/SAM/blob/master/LICENSE.
    • Code source is available here: https://github.com/yuval-alaluf/SAM.

About

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

Topics

face-agingface-aging-ganreplicateshitpostwebappwebapplication

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.