transformers torch torchvision numpy tqdm gradio argparse glob json logging os random math os