If you start at 25g of net carbs a day, you can slowly increase to 50g as you lose weight. Once you reach your goal, you can increase your carbs as you see how they affect your weight. If you eat fruit for a week and gain weight, cut back. You have to figure out what works best for you. Ketosis can be maintained with as many as 100g of carbs each day.
Achieving optimal ketosis hinges on finding the right balance of macronutrients (or “macros” in keto-speak); these are the elements in your diet that account for the majority of your calories, a.k.a. energy—namely, fat, protein, and carbohydrates. By the way, it’s often “net grams” of carbohydrates that are counted toward your daily intake; “net” deducts the amount of fiber in a food from its carbohydrate total.