Wauplin HF staff commited on
Commit
e2ff7c2
1 Parent(s): ea0fbdd
Files changed (2) hide show
  1. README.md +6 -0
  2. app.py +5 -1
README.md CHANGED
@@ -11,3 +11,9 @@ hf_oauth_scopes:
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
+
15
+ Duplicate this Space to get started with OAuth in Gradio Spaces.
16
+
17
+ For more details, check out:
18
+ - https://www.gradio.app/guides/sharing-your-app#o-auth-login-via-hugging-face
19
+ - https://huggingface.co/docs/hub/spaces-oauth
app.py CHANGED
@@ -20,8 +20,12 @@ def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthTo
20
 
21
  with gr.Blocks() as demo:
22
  gr.Markdown(
23
- "# Gradio OAuth Space\n\nThis Space is a demo for the **Sign in with Hugging Face** feature. "
 
24
  "Duplicate this Space to get started."
 
 
 
25
  )
26
  gr.LoginButton()
27
  m1 = gr.Markdown()
 
20
 
21
  with gr.Blocks() as demo:
22
  gr.Markdown(
23
+ "# Gradio OAuth Space"
24
+ "\n\nThis Space is a demo for the **Sign in with Hugging Face** feature. "
25
  "Duplicate this Space to get started."
26
+ "\n\nFor more details, check out:"
27
+ "\n- https://www.gradio.app/guides/sharing-your-app#o-auth-login-via-hugging-face"
28
+ "\n- https://huggingface.co/docs/hub/spaces-oauth"
29
  )
30
  gr.LoginButton()
31
  m1 = gr.Markdown()