A TWO PHASE MODEL FOR THE X-RAY EMISSION FROM SEYFERT GALAXIES