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
Have you made sure that the python endpoint /prediction is receiving a post request containing a body object that looks like this: {body: { message: received_message.text }}.
What response = predictor.reply(str(request.json['message'])) does is:
it converts the message from the body to a string
inputs the message to the pre-trained model and generates the response
meck93
changed the title
Question
Question regarding reading request body message
Mar 22, 2019
Hello, Why response = predictor.reply(str(request.json['message'])) got an error TypeError: 'NoneType' object is not subscriptable? Thank you?
The text was updated successfully, but these errors were encountered: