Skip to content

CapturEat Model and Endpoint - Capstone Project Bangkit Academy 2022

Notifications You must be signed in to change notification settings

daffatm/CapturEat-API

 
 

Repository files navigation

CapturEat-API

Table of Contents

Installation

  1. Go to cloud shell
  2. Clone the repository
  3. Create a directory inside /logs/ called model
  4. Put the model inside of the newly created directory
  5. Go to Cloud Shell
  6. Run the following
cd /CapturEat-API
gcloud builds submit --tag gcr.io/$PROJECT-ID/$IMAGE-NAME
  1. Go to Cloud Run
  2. Create Service
  3. Select the container
  4. Write the service name
  5. Click "Allow unauthenticated invocations"
  6. Set the container port to 8080

API Documentation

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
        }
    ]
}

About

CapturEat Model and Endpoint - Capstone Project Bangkit Academy 2022

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 91.5%
  • Python 8.5%