too many indices array when draw Roc curve for keras model

I want to classify images it is about 7 classifier and i want to plot the ROC curve to measure the performance of the model

it is unbalanced so i try to balanced the train set by used data augmentation and i want to measures the performance by several tool

enter code here

fpr = dict()
tpr = dict()
roc_auc = dict()
for i in range(num_classes):
fpr[i], tpr[i], _ = roc_curve(y_test[:, i], pred_test[:,i])
roc_auc[i] = auc(fpr[i], tpr[i])

# Plot of a ROC curve for a specific class
for i in range(num_classes):
plt.figure()
plt.plot(fpr[i], tpr[i], label='ROC curve (area = %0.2f)' % roc_auc[i])
plt.plot([0, 1], [0, 1], 'k--')
plt.xlim([0.0, 1.0])
plt.ylim([0.0, 1.05])
plt.xlabel('False Positive Rate')
plt.ylabel('True Positive Rate')
plt.legend(loc="lower right")
plt.show()

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-51-b620aaf312da> in <module>
8 roc_auc = dict()
9 for i in range(num_classes):
---> 10     fpr[i], tpr[i], _ = roc_curve(y_test[:, i], pred_test[:,i])
11     roc_auc[i] = auc(fpr[i], tpr[i])
12

IndexError: too many indices for array

the error show too many indices y_test.shape give me (1103, 7) pred_test.shape give me (1103,) how can i solve this problem to draw Roc curve for each class
{"ft_lang_label":"__label__en","ft_lang_prob":0.5697333,"math_prob":0.9857967,"size":1350,"snap":"2022-05-2022-21","text_gpt3_token_len":374,"char_repetition_ratio":0.1679049,"word_repetition_ratio":0.03208556,"special_character_ratio":0.37185186,"punctuation_ratio":0.16845877,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99875796,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-18T23:03:19Z\",\"WARC-Record-ID\":\"<urn:uuid:4b66ef3d-b4bb-424b-83d0-cd0a538cb2d3>\",\"Content-Length\":\"14247\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1eeaf1b5-8109-4bfc-ab83-20dd9d60a884>\",\"WARC-Concurrent-To\":\"<urn:uuid:298d8eff-0de1-40ae-90a4-6a6707edec21>\",\"WARC-IP-Address\":\"104.21.28.46\",\"WARC-Target-URI\":\"https://techqa.club/v/q/too-many-indices-array-when-draw-roc-curve-for-keras-model-c3RhY2tvdmVyZmxvd3w1NDYzODQ2NA==\",\"WARC-Payload-Digest\":\"sha1:FMLT2WITFOUIQDHFG6A7KNRRVDDERXRG\",\"WARC-Block-Digest\":\"sha1:RCXT5CB3YDHG36ZAZWFY4WZTAQVMNNMV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320301063.81_warc_CC-MAIN-20220118213028-20220119003028-00244.warc.gz\"}"}