@@ -31,11 +31,11 @@ async function createJobWithEmbeddedInput() {
3131 // Or if you already know the model id and want to know more about the model, you can use this instead:
3232 //let model = await modzyClient.getModel("c60c8dbd79");
3333 //You can find more information about how to query the models on the model_samples.js file.
34-
3534 // The model identifier is under the modelId key. You can take a look at the other keys by uncommenting the following line
3635 logger . info ( Object . keys ( model ) . toString ( ) . replace ( '\n' , ' ' ) ) ;
3736 // Or just log the model identifier and the latest version
3837 logger . info ( `The model identifier is ${ model . modelId } and the latest version is ${ model . latestVersion } ` ) ;
38+
3939 // Get the model version object:
4040 // If you already know the model version and the input key(s) of the model version, you can skip this step. Also, you can
4141 // use the following code block to know about the input keys and skip the call on future job submissions.
@@ -82,6 +82,7 @@ async function createJobWithEmbeddedInput() {
8282 // We provide a helper method to listen until the job finishes processing. It listens until the job finishes
8383 // and moves to COMPLETED, CANCELED, or TIMEOUT.
8484 job = await modzyClient . blockUntilComplete ( job ) ;
85+
8586 // Get the results:
8687 // Check the status of the job. Jobs may be canceled or may reach a timeout.
8788 if ( job . status === "COMPLETED" ) {
@@ -96,7 +97,7 @@ async function createJobWithEmbeddedInput() {
9697 // results.json, so we can get the results as follows:
9798 if ( result . results [ key ] ) {
9899 let model_res = result . results [ key ] [ "results.json" ] ;
99- // The output for this model comes in a JSON format, so we can directly log the model results:
100+ // The output for this model comes in a JSON format, so we can directly log the results:
100101 logger . info ( ` ${ key } : ${ JSON . stringify ( model_res ) } ` ) ;
101102 }
102103 else {
0 commit comments