Dedication is great, but training while you are sick does not help anybody. You should stay away from any training or other activity if you are not well. You are better off getting some rest and then coming back to the gym when you are healthy. Keep in mind that every time you go to the gym you need to give 100% to achieve your desired results. If your training intensity is compromised because you are sick you will not reach your goals. Unless your goal is to make other people sick, and you do not want to do that, you will be just wasting your time. Therefore, stay at home, get better, and come back ready to train hard.