-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] Hugging Face Repo Exporter #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+611
−47
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2df4929
Add WIP hf repo exporter and rename files
balajiRRK 5bd8cf3
move workflow to top-level to fix manual
balajiRRK ec8adb5
Update name for hugging face workflow
balajiRRK 6ccdb42
Update coloring
balajiRRK 63a26ef
Add instrutions to create HF token for gh secrets
balajiRRK 6f3128d
Update .github/workflows/gh-repo-exporter.yml
balajiRRK 927fe7b
Update .github/workflows/hf-repo-exporter.yml
balajiRRK 031b57a
Update README.md
balajiRRK 8541a3b
WIP get_repo() and get_paper() funcs
balajiRRK 1158c85
Fix author, topcontributors. WIP: repos,home,paper
balajiRRK 5a112f7
Fix homepage, repo, and paper hyperlinking
balajiRRK 016ebd1
Update hf_repo_exporter.py
balajiRRK 1075f3d
Add OpenPRs, WIP fix assoc. datasets,models,spaces
balajiRRK 1109d39
Merge branch 'hf-repo-exporter' of https://github.com/Imageomics/repo…
balajiRRK 4c1fb06
Update README with examples to run scripts locally
balajiRRK 5e883c8
Add TBD to filter word check
balajiRRK fd48c4b
Update get_doi() to better detect DOIs
balajiRRK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Update Metadata for Hugging Face Repository Sheet | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| # ┌──────────── restricted to minute (0-59) | ||
| # │ ┌────────── restricted to hour (0-23) | ||
| # │ │ ┌──────── restricted to day of month (1-31) | ||
| # │ │ │ ┌────── restricted to month (1-12) | ||
| # │ │ │ │ ┌──── restricted to day of week (0-6, 0=Sunday) | ||
| # │ │ │ │ │ * means doesn't restrict anything | ||
| - cron: "0 9 * * 1" # Runs once every Monday at 9 AM UTC | ||
|
|
||
| jobs: | ||
| update-sheet: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.x" | ||
|
|
||
| - name: Install dependencies | ||
| run: pip install -r requirements.txt | ||
|
|
||
| - name: Write Google credentials | ||
| run: printf "%s" '${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}' > service_account.json | ||
|
|
||
| - name: Run script | ||
| env: | ||
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| GOOGLE_CREDENTIALS_PATH: service_account.json | ||
| run: python hf_repo_exporter.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.