Open
Description
sentiment_score = response['sentiment']
TypeError: string indices must be integers, not str
Earlier i was not facing this issue but its bugging me.
my code:
set_api_key(PKEY)
import pdb; pdb.set_trace()
words = str(caption)
#words_check = words.split()
response = sentiment(words)
sentiment_score = response['sentiment']
Metadata
Metadata
Assignees
Labels
No labels