October 2019
Intermediate to advanced
426 pages
10h 8m
English
Now that the services are implemented, let's move to the orchestration layer with the RESTful endpoints.
Replace the contents of app.py in the Chalice project with the following code:
from chalice import Chalicefrom chalicelib import storage_servicefrom chalicelib import recognition_servicefrom chalicelib import translation_service###### chalice app configuration#####app = Chalice(app_name='Capabilities')app.debug = True###### services initialization#####storage_location = 'contents.aws.ai'storage_service = storage_service.StorageService(storage_location)recognition_service = recognition_service.RecognitionService(storage_service)translation_service = translation_service.TranslationService()###### RESTful endpoints ...
Read now
Unlock full access