Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

dark0ghost/aiofaceapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

warning: project in FREEZE

aiofaceapp

Faces

AioFaceApp

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)

How to install:

```git clone https://github.com/dark0ghost/aiofaceapp.git faceapp```
```cd faceapp && python setup.py install```

How to use:

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')

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages