gradio pymupdf torch transformers matplotlib pillow