Thailand confirmed two new cases of the coronavirus on Tuesday, taking its total number of infections to 37, health officials said.