gradio torch transformers accelerate huggingface_hub pydantic pytest