Of course, it depends on what your training purpose is. In order to improve sports performance, or hypoglycemia, inability to exercise, and hunger, you can take low gi carbohydrates 1 hour-30 minutes before exercise. If you are fat-reducing, energetic and not hungry, there is no need to eat.
There are also fitness enthusiasts who consume high GI carbohydrates ten minutes before exercise to improve their performance.
In addition, many chocolates contain fat. Try to stay away from fat for 2 hours before and after training.