Skip to content

g4e817/IUI_Backend

Repository files navigation

IUI

Setup

# Setup Python Env
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt

Run crawler and pre-processing

cd crawler
# Crawl data
scrapy crawl gutekueche
# Process data
python3 pre_process.py
# Download images
python3 get_images.py
# Split into test/train
bash split.sh

Train model

python3 train_model.py

Run Server

# Run Server
flask run 

# Run Server in debug mode
flask --debug run

Testing

curl -X POST -H "Content-Type: multipart/form-data" http://localhost:5000/pred -F "file=@data/demo/cookie.jpg"

About

IUI Backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published