gradio torch transformers pypdf python-docx accelerate