Retrieving Models

    1. Use the CID:

      ipfs cat <CID> > ai_model.h5

      This command retrieves the model file and saves it locally as ai_model.h5.

    2. Access via Gateway: Open the model directly in a browser using:

      https://ipfs.cogni.host/ipfs/<CID>
    3. Integrate in Code: For automated workflows, retrieve the model programmatically:

      import requests
      
      url = "https://ipfs.cogni.host/ipfs/<CID>"
      response = requests.get(url)
      with open("ai_model.h5", "wb") as file:
          file.write(response.content)

Last updated