AI-TMC-2022

This is a very simple web application that identify which idol you look like using AI

image

Process sequence

Untitled

Draft architecture

image

Build

git clone https://github.com/leonidimeev/AI-TMC-2022.git
cd web-app
rebar3 clojerl compile

To start the REPL just run:

rebar3 clojerl repl
===> Verifying dependencies...
===> Compiling web-app
Clojure 0.0.0-988.b107f25
clje.user=>

Now we can start the web-app application:

clje.user=> (application/ensure_all_started :web-app)
#erl[:ok #erl(:ranch :cowlib :cowboy :web-app)]
clje.user=>

You should see when browsing to http://localhost:8080.

Backend

Run local

Install dependencies

pip install -r requirements.txt

Run server

uvicorn app.main:app --reload

Run test

pytest app/test.py

Run with docker

Run server

docker-compose up -d --build

Run test

docker-compose exec app pytest test/test.py

API documentation (provided by Swagger UI)

http://127.0.0.1:8000/docs

Run server

docker-compose exec db psql --username=fastapi --dbname=fastapi_dev

STEPS to run idolpython

python -m venv venv
venv\scripts\activate.bat
python -m pip install pip setuptools
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
deactivate
python run.py
venv\scripts\activate.bat
streamlit run app.py