Blend the grated Gruyère, flour and salt and pepper for 3 minutes in a food processor or liquidiser, adding the eggs one after the other, then the kirsch. Turn the resulting creamy mixture into a large bowl and put in the refrigerator for 10 minutes to thicken a little.