There is an error in your compute_cost() function. It doesn’t return the correct values.
Just figured it out, Thanks.