amdnsr / cartoonganapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cartoon Gan API

Requirements

To install the requirements, create a virtual environment and run:

pip install -r requirements.txt

Usage

The code can either take input via a file which is passed as a command line argument, or the input can be entered manually

export FLASK_APP=application.py
export FLASK_DEBUG=1
export EMAIL_ADDRESS=""
export PASSWORD=""
flask run
  • EMAIL_ADDRESS should be the actual gmail address from where the email will be sent and PASSWORD will be the password of the corresponding email

  • By default the home address is the localhost If we are using an online webserver, then we'd have to replace the localhost with the corresponding home address in the website_data.py file

  • To use the email sender code, we need to allow DisplayUnlockCaptcha and less secure apps

Test

  • Create an account and create a job
  • Upload a single image per job
  • The default example is shown below
Original Cartoonized Image
input_image output_image

Credits

About


Languages

Language:Python 69.2%Language:HTML 28.6%Language:CSS 2.2%