The calibration between the dust continuum and interstellar gas content of star-forming galaxies