Scientists trained an AI model to spot avocados at perfect ripeness, saving you from throwing away all of those rotten ones.