lumoz-ai / brick-python-sdk

Python SDK for building bricks compatible with Lumoz Platform
1 stars 1 forks source link

Provide ways to create a new brick using prebuilt templates. #8

Open hrisheekeshr opened 4 years ago

hrisheekeshr commented 4 years ago

Currently, the bricks are created using brick create -n {name}. This is hard for developers who don't understand the whole ecosystem. This proposal is to create a template store which extends the base implementation of bricks and provides protobufs, configurations and validations to commonly used bricks.

Example 1: Simple example for creating a brick from detection brick

Input

brick create --name helmet-detector --from-templates cv/detection

Output

Detection brick template with necessary proto files, configurations, and validations

Example 2: If the command line argument -i , is provided, an input brick template will be returned.

Input

brick create --name question-answering --from-templates nlp/squad -i

Output

SQUAD input brick, with proto files, configurations, and validations