Skip to content

Commit

Permalink
fix(components): GCP - AutoML - Fixed input type in Batch predict (#4499
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Ark-kun authored Sep 16, 2020
1 parent 3fd72e4 commit 41ce68e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

def automl_prediction_service_batch_predict(
model_path,
gcs_input_uris: str = None,
gcs_input_uris: list = None,
gcs_output_uri_prefix: str = None,
bq_input_uri: str = None,
bq_output_uri: str = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Automl prediction service batch predict
inputs:
- name: model_path
- name: gcs_input_uris
type: String
type: JsonArray
optional: true
- name: gcs_output_uri_prefix
type: String
Expand Down Expand Up @@ -90,7 +90,7 @@ implementation:
_missing_arg = object()
_parser = argparse.ArgumentParser(prog='Automl prediction service batch predict', description='')
_parser.add_argument("--model-path", dest="model_path", type=str, required=True, default=_missing_arg)
_parser.add_argument("--gcs-input-uris", dest="gcs_input_uris", type=str, required=False, default=_missing_arg)
_parser.add_argument("--gcs-input-uris", dest="gcs_input_uris", type=json.loads, required=False, default=_missing_arg)
_parser.add_argument("--gcs-output-uri-prefix", dest="gcs_output_uri_prefix", type=str, required=False, default=_missing_arg)
_parser.add_argument("--bq-input-uri", dest="bq_input_uri", type=str, required=False, default=_missing_arg)
_parser.add_argument("--bq-output-uri", dest="bq_output_uri", type=str, required=False, default=_missing_arg)
Expand Down

0 comments on commit 41ce68e

Please sign in to comment.