Online test result varies from the API tests

Nevermind, I solved the problem with further online researches! I atually found the answer to my question on this forum: API OCR quality is not same ocr.space
I just added scale=True to the arguments of the ocr_space_file function.
def ocr_space_file(filename, overlay=False, api_key=‘your_api_key’, language=‘fre’, scale=True):
etc …