Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wy65701436 committed Jul 3, 2024
1 parent d4db0fd commit a8e7d2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/controller/artifact/processor/hf/hf.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
// const definitions
const (
ArtifactTypeHF = "AIArtifact"
MediaType = "application/vnd.goharbor.huggingface.v1"
MediaType = "application/vnd.goharbor.aiartifact.v1+json"
)

func init() {
Expand Down
6 changes: 3 additions & 3 deletions src/controller/replication/transfer/huggingface/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ func (t *transfer) composeOCI(ctx context.Context, fs *file.Store, files []strin
artifactType := hf.MediaType
orasOpts := oras.PackManifestOptions{
Layers: fileDescriptors,
//ConfigDescriptor: &v1.Descriptor{
// MediaType: hf.MediaType,
//},
ConfigDescriptor: &v1.Descriptor{
MediaType: hf.MediaType,
},
ManifestAnnotations: map[string]string{
"type": "hugging-face-object",
"author": "Stability AI",
Expand Down

0 comments on commit a8e7d2c

Please sign in to comment.