Pilsen to Karlovy Vary

Hello! Is there a train directly between the two cities or only busses? Google maps seems worthless and I'm struggling to figure out the various train lines. Thank you!