It is known that acids decrease the pH of the solution, while bases increase the pH of the solution.
So, HF and HNO₃ decrease the pH of the solution as they produce H⁺ in the solution.
While, KOH and NH₃ increase the pH of the solution as they produce OH⁻ in the solution.
HNO₃ will decrease the pH of the solution greater than HF.
Because HNO₃ is strong acid that decomposes completely to produce H⁺ more than the same concentration of HF that is a weak acid which does not decomposed completely to produce H⁺.