torch Transformers langdetect PyMuPDF reportlab gradio numpy