Original: The Hungarian pancakes are  served as a main dish or a dessert.
Simplified: They are served as a main dish or as a dessert, depending on the filling.