Update 03_sharing-your-app.md (#7552)

* Update 03_sharing-your-app.md

* Update guides/01_getting-started/03_sharing-your-app.md

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
Ari Roffe 2024-02-27 10:41:47 -06:00 committed by GitHub
parent eda33b3763
commit 7cda6ce06d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,8 +240,7 @@ When the user clicks on the login button, they get redirected in a new page to a
Users can revoke access to their profile at any time in their [settings](https://huggingface.co/settings/connected-applications). Users can revoke access to their profile at any time in their [settings](https://huggingface.co/settings/connected-applications).
As seen above, OAuth features are available only when your app runs in a Space. However, you often need to test your app As seen above, OAuth features are available only when your app runs in a Space. However, you often need to test your app
locally before deploying it. To help with that, the `gr.LoginButton` is mocked. When a user clicks on it, they are locally before deploying it. To test OAuth features locally, your machine must be logged in to Hugging Face. Please run `huggingface-cli login` or set `HF_TOKEN` as environment variable with one of your access token. You can generate a new token in your settings page (https://huggingface.co/settings/tokens). Then, clicking on the `gr.LoginButton` will login your local Hugging Face profile, allowing you to debug your app with your Hugging Face account before deploying it to a Space.
automatically logged in with a fake user profile. This allows you to debug your app before deploying it to a Space.
## Accessing the Network Request Directly ## Accessing the Network Request Directly