Skip to content

After upgrading to 2.x SDK, i'm seeing Blazing Text Prediction Error: TypeError: string indices must be integers #1989

Description

@cfregly

sagemaker==2.16.1

I'm seeing this issue after upgrading the following sample to SDK 2.x: https://github.com/aws/amazon-sagemaker-examples/blob/master/introduction_to_amazon_algorithms/blazingtext_text_classification_dbpedia/blazingtext_text_classification_dbpedia.ipynb

here is the upgraded 2.x version: https://github.com/data-science-on-aws/workshop/blob/8ba7a00/08_train/wip/blazingtext_text_classification_dbpedia.ipynb

Traceback (most recent call last):
  File "/opt/amazon/lib/python3.6/site-packages/blazingtext/serve.py", line 308, in invocations
    texts = data["instances"]

TypeError: string indices must be integers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions