Basically, you need to find the freon leak with either UV Dye and black light or freon sniffer. Once you figure out the leak then replace the damaged part. Typically I find bad o-rings and condenser damage. Rare cases I find bad compressors where body seals give up or the front shaft seal fails. Those are tough to find with UV dye but a freon sniffer might detect it.