Kime is a web app for upscaling and enhancing images using generative adversarial networks. This repository contains the backend service written in Python using Quart.
Step 1: Create a virtual environment and install dependencies.
Create a new Virtual Environment for the project and activate it. If you don't have the virtualenv command yet, you can find installation instructions here.
$ virtualenv venv
$ source venv/bin/activateNext, install the project dependencies, which are listed in requirements.txt.
$ pip install -r requirements.txtStep 2: Update environment variables and start the server.
Create a new file named config.json and update the new file with your Azure credentials. It should look similar to this:
{
"storage": {
"azure": {
"account_name": "...",
"access_key": "..."
}
},
"db": {
"azure": {
"access_uri":"..."
}
},
"engine": {
"url": "http://0.0.0.0:3785/enhance",
"username": "...",
"secret": "..."
}
}Now you are ready to start the backend service:
$ hypercorn -w 4 -b 127.0.0.1:3780 app.__main__:app