Grate the sweet and baking potatoes coarsely; set half the grated potatoes aside and purée the other half. Mix the grated and puréed potatoes, then combine with the eggs, enough flour to make a lightly bound mixture, and the onion, salt, cumin and chilli powder.
Heat a little vegetable oil in a heavy frying pan until hot but not smoking.