Huggingface.js documentation

인터페이스: CopySource

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

인터페이스: CopySource

copyFile / copyFiles / copyFolder에서 파일의 소스 위치.

속성

path

• path: string

소스 저장소 내 파일(또는 copyFolder의 경우 폴더)의 경로입니다. copyFolder에서 전체 저장소를 복사하려면 비워 두세요.

정의 위치

packages/hub/src/lib/copy-files.ts:44


repo

• repo: RepoDesignation

정의 위치

packages/hub/src/lib/copy-files.ts:39


수정

• Optional revision: string

소스를 읽을 Git revision입니다. bucket 소스의 경우 무시됩니다.

Default

"main"

정의 위치

packages/hub/src/lib/copy-files.ts:50

Update on GitHub