Results 4 comments of Namshik Kim

if you see the print accuracy_batch, you'll notice it is list. You should flatten to have the float number to add up. total_correct_preds += accuracy_batch[0] will work.

I have never experienced such an error before. I will check out

만약 data[1] 부분에서 다시 오류가 발생하면, data[1]->data로 바꿔주시면 됩니다

parent_id 에 값이 없어서 그런건데 bbs/board.py 파일에서 parent_id: int = Form(None) 찾으신 후 None 을 0으로 수정하시면 됩니다. 수정하기 전에 0.0.0.0:8000/docs 로 가 보시면 openAPI 보실 수 있는데 거기서 게시판...