PacktPublishing / Learn-Amazon-SageMaker

Learn Amazon SageMaker
MIT License
102 stars 89 forks source link

Chapter 6 : Blazing Text #5

Closed PacktAsh closed 3 years ago

PacktAsh commented 3 years ago

When running predictor, seeing attribute error. I saw there were similar error messages seen and I tried importing both the JSONserializer & JSONdeserializer.

bt_predictor.content_type = 'application/json' response = bt_predictor.predict(json.dumps(payload))

juliensimon commented 3 years ago

Hi, which notebook is this ? The latest SDK v2 notebook is https://github.com/PacktPublishing/Learn-Amazon-SageMaker/blob/master/sdkv2/ch6/blazingtext/BlazingText%20on%20Amazon%20Reviews%20-%20Classification.ipynb and doesn't include the code above.