CascadeClassifier not working

Error :

Traceback (most recent call last):
File “C:\Users\prach\PycharmProjects\extra\main.py”, line 170, in
faces = face_cascade.detectMultiScale(gray_frame ,1.3 , 5)
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function ‘cv::CascadeClassifier::detectMultiScale’