You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
After upgrading to 2.x SDK, i'm seeing Blazing Text Prediction Error: TypeError: string indices must be integers #1989
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
Change response = text_classifier.predict(json.dumps(payload)) to response = text_classifier.predictor(payload) . You don't need to serialize your payload with JSONSerializer() specified.
Activity
SitiBanc commentedon Nov 13, 2020
Change
response = text_classifier.predict(json.dumps(payload))toresponse = text_classifier.predictor(payload). You don't need to serialize your payload withJSONSerializer()specified.PacktAsh commentedon Mar 2, 2021
When I make similar call:
customer_entity.content_type = 'application/json'
I am seeing the following error:
customer_entity.content_type = 'application/json'
martinRenou commentedon Sep 27, 2023
Closing for triaging. Please reopen if you feel like this still applies.
MTRL Launch PR (#5919)
MTRL Launch PR (aws#5919)