fastapi uvicorn gradio torch transformers mteb pdf2image peft Pillow requests