pdf2image torch transformers gradio python-Levenshtein