Freaking out right now

Só my doctor told me I have hpv last week and I also have herpes with makes me worried because I am pregnant she told me the hpv will go away on it’s own but I’m just worried