Garden-AI / garden

https://garden-ai.readthedocs.io
MIT License
17 stars 4 forks source link

Don't assume that Hugging Face repos have model cards #377

Closed WillEngler closed 8 months ago

WillEngler commented 8 months ago

The HFConnector calls ...

self.model_card = hfh.ModelCard.load(repo_id)

... which assumes that there is a root README in the repo and errors when there isn't.

Assumptions:

1. 2.

Acceptance Criteria

Given I have a Hugging Face repo without a README, when I try to instantiate an HFConnector with it, then it doesn't error out.