https://github.com/munas-git/rest-api-article
https://github.com/munas-git/rest-api-article
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/munas-git/rest-api-article
- Owner: munas-git
- Created: 2023-09-07T14:30:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-08T11:20:10.000Z (over 2 years ago)
- Last Synced: 2023-09-08T12:38:00.774Z (over 2 years ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST API Implementation in Python for Model Deployment: Flask and FastAPI
> This repo is for the article above, you can read more [here](https://medium.com/@einsteinmunachiso/rest-api-implementation-in-python-for-model-deployment-flask-and-fastapi-e80a6cedff86)
## How to run either of them
To run either of the files:
- Clone the repo
- Navigate into the directory you wish to run
- Run **pip install -r requirements.txt**
- Run the start command:
- flask run <-- For flask server
- uvicorn app:app <-- For FastAPI server.
## How to send requests:
- For Flask server, check [here](https://youtu.be/G3BPCMY4TmM?si=KALYgh87VvA17ACH)
- For FastAPI server, check [here](https://youtu.be/UxpkDN_Rcgk?si=DUq9ttps-VPeL_2P)