Programmatically accept gated repo
See original GitHub issueMentioned multiple times already. Last time in https://github.com/huggingface/diffusers/issues/1239. Also on slack (internal link).
It would be good to have an API to read and accept license for a gated repo. This requires 2 endpoints from the Hub:
- Get the license message (e.g. extra_gated_prompt) + which fields to prompt (e.g. extra_gated_fields) => TODO in moon-landing
- Accept the license with required fields => already exists
(cc @anton-l @patrickvonplaten from diffusers
, cc @julien-c @Pierrci from moon-landing
)
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:15 (14 by maintainers)
Top Results From Across the Web
Add custom `GatedRepoError` when trying to access gated ...
This PR takes advantage of the new "GatedRepo" error code that is returned by server when a user tries to access a repo...
Read more >How can I programmatically checkin code in TFS with policy ...
I'm trying to checkin code from a c# program in a part of TFS repository which will trigger a gated checkin build and...
Read more >Gated Check-in in Git Repository - CodeProject
The idea is to implement the Gated Check-in (Visual Studio TFS) in Github's way. The code should be integrated only when the unit...
Read more >Adding repositories to Codacy programmatically
Example of how to add multiple repositories programmatically using Codacy's API v3 endpoint addRepository.
Read more >Control releases with deployment gates - Azure Pipelines
Gates allow automatic collection of health signals from external services and then promote the release when all the signals are successful ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sgugger
GatedRepoError
is now implemented inhuggingface_hub
(https://github.com/huggingface/huggingface_hub/pull/1225). Feel free to use it starting from next release 😃@sgugger I made a PR in moon-landing (internal link) so that we can know when we get an error because of a gated repo (other than parsing the response payload). Let’s settle this server-side and then I’ll adapt in
huggingface_hub
.