Skip to content

Commit a48d520

Browse files
authored
Merge branch 'main' into additions-keypoint-detection
2 parents 09c5516 + f900503 commit a48d520

File tree

52 files changed

+506
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+506
-113
lines changed

.github/workflows/agents-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
5151
pnpm --filter doc-internal run fix-cdn-versions
5252
git add ../..
53-
git commit -m "🔖 @hugginface/agents $BUMPED_VERSION"
53+
git commit -m "🔖 @huggingface/agents $BUMPED_VERSION"
5454
git tag "agents-v$BUMPED_VERSION"
5555
- run: pnpm --filter agents... build && pnpm publish --no-git-checks .
5656
env:
@@ -61,10 +61,12 @@ jobs:
6161
with:
6262
node-version: "20"
6363
registry-url: "https://npm.pkg.github.com"
64-
- run: pnpm publish --no-git-checks .
65-
env:
66-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
# Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558)
65+
# - run: pnpm publish --no-git-checks .
66+
# env:
67+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6768
- name: "Update Doc"
6869
uses: peter-evans/repository-dispatch@v2
6970
with:
7071
event-type: doc-build
72+
token: ${{ secrets.BOT_ACCESS_TOKEN }}

.github/workflows/gguf-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
BUMPED_VERSION=$(node -p "require('semver').inc('$PACKAGE_VERSION', '${{ github.event.inputs.newversion }}')")
4848
# Update package.json with the new version
4949
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
50-
git commit . -m "🔖 @hugginface/gguf $BUMPED_VERSION"
50+
git commit . -m "🔖 @huggingface/gguf $BUMPED_VERSION"
5151
git tag "gguf-v$BUMPED_VERSION"
5252
- run: pnpm publish --no-git-checks .
5353
env:
@@ -58,6 +58,7 @@ jobs:
5858
with:
5959
node-version: "20"
6060
registry-url: "https://npm.pkg.github.com"
61-
- run: pnpm publish --no-git-checks .
62-
env:
63-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
# Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558)
62+
# - run: pnpm publish --no-git-checks .
63+
# env:
64+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/hub-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
5151
pnpm --filter doc-internal run fix-cdn-versions
5252
git add ../..
53-
git commit -m "🔖 @hugginface/hub $BUMPED_VERSION"
53+
git commit -m "🔖 @huggingface/hub $BUMPED_VERSION"
5454
git tag "hub-v$BUMPED_VERSION"
5555
5656
- name: Make sure that the latest version of @huggingface/tasks is consistent with the local version
@@ -99,10 +99,12 @@ jobs:
9999
with:
100100
node-version: "20"
101101
registry-url: "https://npm.pkg.github.com"
102-
- run: pnpm publish --no-git-checks .
103-
env:
104-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102+
# Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558)
103+
# - run: pnpm publish --no-git-checks .
104+
# env:
105+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105106
- name: "Update Doc"
106107
uses: peter-evans/repository-dispatch@v2
107108
with:
108109
event-type: doc-build
110+
token: ${{ secrets.BOT_ACCESS_TOKEN }}

.github/workflows/inference-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
5151
pnpm --filter doc-internal run fix-cdn-versions
5252
git add ../..
53-
git commit -m "🔖 @hugginface/inference $BUMPED_VERSION"
53+
git commit -m "🔖 @huggingface/inference $BUMPED_VERSION"
5454
git tag "inference-v$BUMPED_VERSION"
5555
5656
- name: Make sure that the latest version of @huggingface/tasks is consistent with the local version
@@ -99,6 +99,7 @@ jobs:
9999
with:
100100
node-version: "20"
101101
registry-url: "https://npm.pkg.github.com"
102-
- run: pnpm publish --no-git-checks .
103-
env:
104-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102+
# Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558)
103+
# - run: pnpm publish --no-git-checks .
104+
# env:
105+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/jinja-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
BUMPED_VERSION=$(node -p "require('semver').inc('$PACKAGE_VERSION', '${{ github.event.inputs.newversion }}')")
4848
# Update package.json with the new version
4949
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
50-
git commit . -m "🔖 @hugginface/jinja $BUMPED_VERSION"
50+
git commit . -m "🔖 @huggingface/jinja $BUMPED_VERSION"
5151
git tag "jinja-v$BUMPED_VERSION"
5252
- run: pnpm publish --no-git-checks .
5353
env:
@@ -58,6 +58,7 @@ jobs:
5858
with:
5959
node-version: "20"
6060
registry-url: "https://npm.pkg.github.com"
61-
- run: pnpm publish --no-git-checks .
62-
env:
63-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
# Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558)
62+
# - run: pnpm publish --no-git-checks .
63+
# env:
64+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/languages-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
BUMPED_VERSION=$(node -p "require('semver').inc('$PACKAGE_VERSION', '${{ github.event.inputs.newversion }}')")
4848
# Update package.json with the new version
4949
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
50-
git commit . -m "🔖 @hugginface/languages $BUMPED_VERSION"
50+
git commit . -m "🔖 @huggingface/languages $BUMPED_VERSION"
5151
git tag "languages-v$BUMPED_VERSION"
5252
- run: pnpm publish --no-git-checks .
5353
env:
@@ -58,6 +58,7 @@ jobs:
5858
with:
5959
node-version: "20"
6060
registry-url: "https://npm.pkg.github.com"
61-
- run: pnpm publish --no-git-checks .
62-
env:
63-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
# Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558)
62+
# - run: pnpm publish --no-git-checks .
63+
# env:
64+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/space-header-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
BUMPED_VERSION=$(node -p "require('semver').inc('$PACKAGE_VERSION', '${{ github.event.inputs.newversion }}')")
4848
# Update package.json with the new version
4949
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
50-
git commit . -m "🔖 @hugginface/space-header $BUMPED_VERSION"
50+
git commit . -m "🔖 @huggingface/space-header $BUMPED_VERSION"
5151
git tag "space-header-v$BUMPED_VERSION"
5252
- run: pnpm publish --no-git-checks .
5353
env:
@@ -58,10 +58,12 @@ jobs:
5858
with:
5959
node-version: "20"
6060
registry-url: "https://npm.pkg.github.com"
61-
- run: pnpm publish --no-git-checks .
62-
env:
63-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
# Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558)
62+
# - run: pnpm publish --no-git-checks .
63+
# env:
64+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6465
- name: "Update Doc"
6566
uses: peter-evans/repository-dispatch@v2
6667
with:
6768
event-type: doc-build
69+
token: ${{ secrets.BOT_ACCESS_TOKEN }}

.github/workflows/tasks-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
BUMPED_VERSION=$(node -p "require('semver').inc('$PACKAGE_VERSION', '${{ github.event.inputs.newversion }}')")
4848
# Update package.json with the new version
4949
node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');"
50-
git commit . -m "🔖 @hugginface/tasks $BUMPED_VERSION"
50+
git commit . -m "🔖 @huggingface/tasks $BUMPED_VERSION"
5151
git tag "tasks-v$BUMPED_VERSION"
5252
- run: pnpm publish --no-git-checks .
5353
env:
@@ -58,10 +58,12 @@ jobs:
5858
with:
5959
node-version: "20"
6060
registry-url: "https://npm.pkg.github.com"
61-
- run: pnpm publish --no-git-checks .
62-
env:
63-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
# Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558)
62+
# - run: pnpm publish --no-git-checks .
63+
# env:
64+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6465
- name: "Update Doc"
6566
uses: peter-evans/repository-dispatch@v2
6667
with:
6768
event-type: doc-build
69+
token: ${{ secrets.BOT_ACCESS_TOKEN }}

.github/workflows/widgets-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ jobs:
170170
with:
171171
node-version: "20"
172172
registry-url: "https://npm.pkg.github.com"
173-
- run: pnpm publish --no-git-checks .
174-
env:
175-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173+
# Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558)
174+
# - run: pnpm publish --no-git-checks .
175+
# env:
176+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ You can run our packages with vanilla JS, without any bundler, by using a CDN or
8989
```html
9090
<script type="module">
9191
import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/+esm';
92-
import { createRepo, commit, deleteRepo, listFiles } from "https://cdn.jsdelivr.net/npm/@huggingface/[email protected].1/+esm";
92+
import { createRepo, commit, deleteRepo, listFiles } from "https://cdn.jsdelivr.net/npm/@huggingface/[email protected].2/+esm";
9393
</script>
9494
```
9595

0 commit comments

Comments
 (0)