Pyloric interventions are surgical procedures employed to increase the gastric emptying rate in gastroparesis patients. In this study, we use an in silico model to investigate the consequences of pyloric intervention on gastric flow and emptying for two phenotypes of gastroparesis: antral hypomotility and decreased gastric tone. The transpyloric pressure gradient predicted by the in silico model, based on viscous fluid flow equations, is compared against in vivo measurements. Both phenotypes exhibit a similar pre-procedural emptying rate reduction, but after pyloric surgery, antral hypomotility case with preserved gastric tone shows significant improvements in emptying rates, up to 131%, accompanied by bile reflux from the duodenum into the stomach. Conversely, severely reduced gastric tone cases exhibited a post-procedural reduction in the net emptying rate due to the relatively larger bile reflux. In cases with a combination of antral hypomotility and reduced gastric tone, post-procedural improvements were observed only when both conditions were mild. Our findings highlight the pivotal role of the relative increase in pyloric orifice diameter in determining post-operative emptying rates. The study suggests a possible explanation for the selective response of patients toward these procedures and underscores the potential of in silico modelling to generate valuable insights to inform gastric surgery.