OAuth sign-in missing inference-api and write-repos scopes — canvas workflow can't start

#11
by ThreeSixNine - opened

Hi!

Thanks for this Space — the unquantized H3 setup is impressive and the README writeup is a great read.

I'm hitting an error when trying to use the gr.Workflow canvas. After signing in via Hugging Face OAuth and pressing Enter bto begin the flow, I get:

This Space's sign-in is missing inference-api (to run nodes on the signed-in user's own inference quota), write-repos (to save the workflow back to this Space). The author should add inference-api and write-repos under hf_oauth_scopes in the README and redeploy.

Looking at the Space's README YAML, it currently has:

  hf_oauth: true                                                                                                            

but no hf_oauth_scopes, so OAuth sign-ins only receive the basic profile scope. That appears to block visitors from running even the read-only graph, since nodes can't be billed to the sign-in user's quota.

Suggested fix — add the scopes to the README header and redeploy:

  hf_oauth: true                                                                                                            
  hf_oauth_scopes:                                                                                                          
    - inference-api                                                                                                         
    - write-repos                                                                                                           

Steps to reproduce:

  1. Open the Space and sign in with HF OAuth.
  2. Focus the canvas workflow and press Enter to begin the flow.
  3. The scope error above is shown.

Happy to re-test once it's redeployed. In the meantime I'll call the gradio API directly with a token, per the Space's agents.md

Sign up or log in to comment