You'll probably feel better later on, so just stay in bed for a bit. You might email your prof and let her/him know you're sick and may not make it, or, ask if you can go first and then leave.