According to the above guidelines I would follow them as well.
Give your dog the equivalent of 10% of their daily food amount in pumpkin.
You can either feed the pumpkin with a bit of their main food or just on its own depending on how severe the diarrhea is.
It is important to consult a vet if diarrhea continues for longer than a day due to the risk of dehydration.