Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/hub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,18 @@ Remote resources and local files should be passed as `URL` whenever it's possibl

Under the hood, `@huggingface/hub` uses a lazy blob implementation to load the file.

## Constants

The library exports the following constants that you can use in your application:

- `HUB_URL`: The base URL for the Hugging Face Hub API (`https://huggingface.co`). This can be useful if you need to construct URLs or check against the default URL.

```ts
import { HUB_URL } from "@huggingface/hub";

console.log(HUB_URL); // https://huggingface.co
```

## Dependencies

- `@huggingface/tasks` : Typings only
Expand Down
1 change: 1 addition & 0 deletions packages/hub/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type {
SpaceStage,
} from "./types/public";
export { HubApiError, InvalidApiResponseFormatError } from "./error";
export { HUB_URL } from "./consts";
/**
* Only exported for E2Es convenience
*/
Expand Down