The in-plane thermal conductivity of thin silicon films is predicted using equilibrium molecular dynamics, the Stillinger-Weber potential and the Green-Kubo relationship. Film thicknesses range from 2 to 200 nm. Periodic boundary conditions are used in the directions parallel to the thin film surfaces. Two different strategies are evaluated to treat the atoms on the surfaces perpendicular to the thin film direction: adding four layers of atoms kept frozen at their crystallographic positions, or restraining the atoms near the surfaces with a repulsive potential. We show that when the thin-film thickness is smaller than the phonon mean free path, the predictions of the in-plane thermal conductivity at 1000K differ significantly depending on the potential applied to the atoms near the surfaces. In this limit, the experimentally observed trend of decreasing thermal conductivity with decreasing film thickness is predicted when the surface atoms are subject to a repulsive potential in addition to the Stillinger-Weber potential, but not when they are limited by frozen atoms.