By the end of the day, the coffee urn, which had started out with 9 7/8 gallons of coffee, was left with 1 1/8 gallons. How many gallons of coffee had been dispensed? Write your answer as a fraction or as a whole or mixed number.