This project is to develop a web service to allow researchers to gain insight into the meanings and semantics of what makes a social media post more influential. Specifically, this project will expose a web REST API to allow researchers at AI4Society to upload images and retrieve a summary of an analysis of that photo. This analysis may contain anything from a color scheme analysis to sentiment classification of the photo.
- Python 3.9
- Yarn and Nodejs
- clone the repo
cd
into theapi
directory- generate virtual environment with
python3 -m venv env
- activate virtual env with
source env/bin/activate
- install requirements with
pip install -r requirements.txt
- run app with
uvicorn api.main:app --reload
- clone the repo if you haven't already
cd
intofrontend
directory- use
yarn start
to start app locally
- Endpoint test API:
pytest api/tests/test_endpoints.py
- Unit test models:
python -m unittest discover -p "*__test.py"
- snap shot test:
yarn test