Depairing currents in superconducting films of Nb and amorphous MoGe