Push_to_hub() makes Inference Endpoint not working

This seems to be unrelated to inference endpoint, Would open a thread in the #beginners section?