Check your internet connection or firewall if they block that connection
model = lp.AutoLayoutModel('lp://EfficientDete/PubLayNet')
this will download models weights. That's why you got this error