If you have already checked your refrigerant levels, filter, thermostat, and compressor, then some other electrical error must be causing your AC to blow only hot air. Other electrical malfunctions include blown fuses and problems with the circuit breaker.
Of course, you should never attempt to try and fix electrical malfunctions yourself. Instead, leave all AC repairing to the professionals by calling your servicing team and scheduling an appointment.