Class ServiceConfig.Huggingface

java.lang.Object
org.apache.opendal.ServiceConfig.Huggingface
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.Huggingface extends Object implements ServiceConfig
Configuration for service huggingface.
  • Field Details

    • repoType

      public final String repoType

      Repo type of this backend. Default is model.

      Available values:

      • model
      • dataset
    • repoId

      public final String repoId

      Repo id of this backend.

      This is required.

    • revision

      public final String revision

      Revision of this backend.

      Default is main.

    • root

      public final String root

      Root of this backend. Can be "/path/to/dir".

      Default is "/".

    • token

      public final String token

      Token of this backend.

      This is optional.

  • Constructor Details

    • Huggingface

      public Huggingface()
  • Method Details