warning: project in FREEZE
You can transform your face using AI with Faceapp
FaceApp is an Android and iOS application.
This module is an unofficial wrapper to their AI system.
When I wrote this module I looked at https://github.com/reloadlife/FaceApp-py(thx)
```git clone https://github.com/dark0ghost/aiofaceapp.git faceapp```
```cd faceapp && python setup.py install```
import aiofaceapp
import asyncio
import aiohttp
from PIL import Image
filters = ['smile', 'smile_2', 'hot', 'old', 'young', 'female', 'male'
def task() -> None:
s: aiohttp.ClientSession = aiohttp.ClientSession()
f = aiofaceapp(s)
code = await f.get_code(pathfilejpg)
b = await f.make_img(code, filters[3])
image = Image.open(io.BytesIO(b))
image.save('./img/'+str(code)+str(filters[n])+'.png')