Skip to content
forked from seasonjs/hf-hub

golang client for the huggingface hub aiming for minimal subset of features over `huggingface-hub` python package

License

Notifications You must be signed in to change notification settings

ant-arch/hf-hub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hf-hub

Go Reference

golang client for the huggingface hub aiming for minimal subset of features over huggingface-hub python package

Usage

Add the dependency

go get github.com/seasonjs/hf-hub

use this package

package main

import (
	"github.com/seasonjs/hf-hub/api"
)

func main() {
	hapi, err := api.NewApi()
	if err != nil {
		print(err.Error())
		return
	}

	modelPath, err := hapi.Model("bert-base-uncased").Get("config.json")
	if err != nil {
		print(err.Error())
		return
	}

	print(modelPath)
}

Thanks

License

Copyright (c) seasonjs. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.

About

golang client for the huggingface hub aiming for minimal subset of features over `huggingface-hub` python package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.1%
  • Python 1.9%