question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Programmatically accept gated repo

See original GitHub issue

Mentioned 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:

  1. Get the license message (e.g. extra_gated_prompt) + which fields to prompt (e.g. extra_gated_fields) => TODO in moon-landing
  2. Accept the license with required fields => already exists

(cc @anton-l @patrickvonplaten from diffusers, cc @julien-c @Pierrci from moon-landing)

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:1
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
Wauplincommented, Nov 25, 2022

@sgugger GatedRepoError is now implemented in huggingface_hub (https://github.com/huggingface/huggingface_hub/pull/1225). Feel free to use it starting from next release 😃

1reaction
Wauplincommented, Nov 23, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found