Spaces:
Sleeping
Sleeping
Clement Vachet
commited on
Commit
·
a855e72
1
Parent(s):
243f31c
Add README file
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Object Detection Lambda
|
| 3 |
+
emoji: 🌖
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 5.5.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
short_description: Object detection Lambda
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Object detection via AWS Lambda
|
| 14 |
+
|
| 15 |
+
<b>Aim: AI-driven object detection task</b>
|
| 16 |
+
- Front-end: user interface via Gradio library
|
| 17 |
+
- Back-end: use of AWS Lambda function to run ML models
|
| 18 |
+
|
| 19 |
+
## Local development
|
| 20 |
+
|
| 21 |
+
### User interface
|
| 22 |
+
Use of Gradio library for web interface
|
| 23 |
+
|
| 24 |
+
Command line:
|
| 25 |
+
> python3 app.py
|
| 26 |
+
|
| 27 |
+
<b>Note:</b> The Gradio app should now be accessible at http://localhost:7860
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
### Building the docker image:
|
| 31 |
+
|
| 32 |
+
bash
|
| 33 |
+
> docker build -t object-detection-lambda .
|
| 34 |
+
|
| 35 |
+
### Running the docker container locally:
|
| 36 |
+
|
| 37 |
+
bash
|
| 38 |
+
|
| 39 |
+
> docker run --name object-detection-lambda-cont -p 8080:8080 object-detection-lambda
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
### Testing locally:
|
| 43 |
+
|
| 44 |
+
Example of a prediction request
|
| 45 |
+
|
| 46 |
+
python
|
| 47 |
+
> python3 inference_api.py --api http://localhost:8080/2015-03-31/functions/function/invocations --file ./tests/data/boats.jpg
|