You'd have to have an attorney review your contract for specifics.
In my jurisdiction if a buyer agrees to purchase 'as-is' (there are a couple different areas in the contract where this is addressed specifically) they usually indicate the contract IS NOT contingent on a home inspection. Which means they are obligated to purchase regardless of what comes up in an inspection.
Is the contract IS contingent on home inspection, the seller has the option to refuse any repairs requested. If they cancel the contract, the buyer should be entitled to their earnest money deposit returned, but it's unlike the buyer will recover any inspection costs.
Sounds like you went into this without a realtor representing you. Every contract is different, so get a real estate attorney to review and let you know of your obligations and options.