1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

add utilities for updating diffusers pipeline metadata. (#7573)

* add utilities for updating diffusers pipeline metadata.

* style

* remove first empty line
This commit is contained in:
Sayak Paul
2024-04-10 08:28:49 +05:30
committed by GitHub
parent a0cf607667
commit ac7ff7d4a3
2 changed files with 136 additions and 0 deletions

30
.github/workflows/update_metadata.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Update Diffusers metadata
on:
workflow_dispatch:
push:
branches:
- main
- update_diffusers_metadata*
jobs:
update_metadata:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Setup environment
run: |
pip install --upgrade pip
pip install datasets pandas
pip install .[torch]
- name: Update metadata
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.DIFFUSERS_BOT_TOKEN }}
run: |
python utils/update_metadata.py --commit_sha ${{ github.sha }}