The company tried to sell sustainable shoes, but couldn't stop losing money. So the publicly-held firm is trying its hand at AI instead.