I am getting this:
0.0 angry27.56%
0.0 disgust0.0%
0.0 fear18.75%
0.0 happy14.47%
0.0 sad5.34%
0.0 surprise14.96%
0.0 neutral18.92%
I want to get this:
0.0 angry27.56%, disgust0.0%, fear18.75%, happy14.47%, sad5.34%, surprise14.96%, neutral18.92%
I am using this code:
emotion = ""
for i in range(len(predictions[0])):
emotion = "%s%s%s" % (emotions[i], round(predictions[0][i]*100, 2), '%')
print(str(sec)+ " " + emotion)