Table of Contents
- Go to cloud shell
- Clone the repository
- Create a directory inside /logs/ called model
- Put the model inside of the newly created directory
- Go to Cloud Shell
- Run the following
cd /CapturEat-API
gcloud builds submit --tag gcr.io/$PROJECT-ID/$IMAGE-NAME
- Go to Cloud Run
- Create Service
- Select the container
- Write the service name
- Click "Allow unauthenticated invocations"
- Set the container port to
8080
URL: https://captureat-***-et.a.run.app
Method: GET
Code: 200
Response:
Server OK!
URL: https://captureat-***-et.a.run.app/predict
Method: GET
Code: 200
Response:
Hello from Predict!
URL: https://captureat-***-et.a.run.app
Method: POST
Data: an image with key "image"
Code: 200
Response:
{
"recipe": [
{
"cleaned_ingredients": string,
"id": integer,
"image_link": string,
"image_name": string,
"instructions": string,
"title": string
}
]
}