torch transformers typing pathlib gradio