Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 1.16 KB

File metadata and controls

38 lines (34 loc) · 1.16 KB

Image Recognition App using FastAPI and PyTorch -> TODO

[x] Create a virtual environment [x] Create FastAPI App - Install fastapi - Install Uvicorn - Install Pytest - Install Jinja2 - Install python-multipart - Install requests - Create a main file with some routes - Create a main test file to test the home page route

[x] Pytorch Setup - Install torch & torchvision (use cpu version for small size)

[x] Prediction - Create a predict post route - Create a file utils.py - Test predict route - Create some helper function - Put some test images inside static folder - Create a test to upload an image in predict route - Predict

[x] Create a home page for prediction - Create a index.html file inside templates directory - Setup template and static directory in main app - Initial html for home page - Use Tailwind CSS cdn link for css - Google Fonts - Create a form to predict - update homepage route for prediction - Update UI of the page - Add Some javascript to auto load image - Add logo and favicon - Add meta tags - Add response image for preview as base64 data