From 23776b5eb27f1e4918563f6b82459fc9d4591484 Mon Sep 17 00:00:00 2001 From: Lucain Date: Mon, 11 Sep 2023 17:59:04 +0200 Subject: [PATCH] No need to install deps anymore (#5477) --- guides/01_getting-started/03_sharing-your-app.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/guides/01_getting-started/03_sharing-your-app.md b/guides/01_getting-started/03_sharing-your-app.md index 8cecb1d1ad..72a70a2baf 100644 --- a/guides/01_getting-started/03_sharing-your-app.md +++ b/guides/01_getting-started/03_sharing-your-app.md @@ -195,11 +195,9 @@ If allows to add a _"Sign in with Hugging Face"_ button to your demo. Check out for a live demo. To enable OAuth, you must set `hf_oauth: true` as a Space metadata in your README.md file. This will register your Space -as an OAuth application on Hugging Face. You also need to include `itsdangerous` and `authlib` in a separate -`requirements.txt` file. Next, you can use `gr.LoginButton` and `gr.LogoutButton` to add login and logout buttons to -your Gradio app. Once a user is logged in with their HF account, you can retrieve their profile. To do so, you only -have to add a parameter of type `gr.OAuthProfile` to any Gradio function. The user profile will be automatically -injected as a parameter value. +as an OAuth application on Hugging Face. Next, you can use `gr.LoginButton` and `gr.LogoutButton` to add login and logout buttons to +your Gradio app. Once a user is logged in with their HF account, you can retrieve their profile by adding a parameter of type +`gr.OAuthProfile` to any Gradio function. The user profile will be automatically injected as a parameter value. Here is a short example: