from huggingface_hub import hf_hub_download # Replace "model_name" with the actual model name model_info_path = hf_hub_download("shuttleai/shuttle-3-diffusion", filename="model_index.json") # Now you can read the contents of the file with open(model_info_path, "r") as f: model_info_content = f.read() print(model_info_content)