Mix the spices in a small bowl to make a homemade pumpkin spice mix.
Toast the almond and coconut flour in a nonstick pan over medium heat for about five minutes or until a nutty aroma develops. Be attentive to prevent burning.
Once the flours are toasted, stir in the blended spices and sweetener. Cook for a couple of minutes.
Add the pumpkin puree, ghee, and coconut milk to the mixture.
Cook the barfi mixture over low heat, stirring continuously, until it reaches a Play-Doh-like consistency. Adjust the heat as needed to avoid burning.
Continue stirring the mixture until it comes together and can be shaped with a spatula. Then, switch off the heat.
Let the mixture cool slightly in the pan until it’s safe to handle, about 5 minutes. If it’s too hot, remove the pan from the heat.
Divide the mixture into nine portions and shape them into balls.
Once shaped, slightly flatten the balls and make a dent at the top with your thumb or finger. Use a toothpick or blunt knife to create ridges along the sides.
Finally, place a pumpkin seed or sliced pistachio into the dent to resemble the stem. Place them on a plate to serve immediately or transfer them to a container, cover and keep them at room temperature for up to 2 days, then refrigerate or freeze them.