# Flask app to restore photos

Simple Flask app to restore old photos with AI. It uses the [GFPGAN](https://replicate.com/tencentarc/gfpgan) model on [Replicate](https://replicate.com/).

![Screenshot](screenshot.png)
## Setup
```bash
pip install flask replicate python-dotenv
```

You need a [Replicate](https://replicate.com/) API Token (You can get started for free). Put the token in the `.env` file.

Then start the app, upload a photo, and have fun!

```bash
python main.py
```

## Resources

- Inspired by [restorephotos.io](https://www.restorephotos.io/)
- [https://github.com/TencentARC/GFPGAN](https://github.com/TencentARC/GFPGAN)