davanstrien HF staff commited on
Commit
eb06eb9
1 Parent(s): 3d02299

Add authentication section to collection cloning

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,6 +40,7 @@ with gr.Blocks() as demo:
40
  This space allows you to clone a <a href="https://huggingface.co/docs/hub/collections">Collection</a> from the Hugging Face Hub into your own namespace.
41
  You can then edit the collection to your liking!</p>"""
42
  )
 
43
  gr.Markdown(
44
  "Token is required to create a new collection and clone private collections. You can get your token from your [profile page](https://huggingface.co/settings/token)."
45
  )
@@ -51,7 +52,7 @@ You can then edit the collection to your liking!</p>"""
51
  with gr.Column():
52
  gr.Markdown("## Source Collection")
53
  source_slug = gr.Textbox(
54
- label="Source Collection Slug",
55
  )
56
  gr.Markdown("## Destination Collection info")
57
  dest_namespace = gr.Textbox(
@@ -61,7 +62,6 @@ You can then edit the collection to your liking!</p>"""
61
  dest_title = gr.Textbox(
62
  label="Destination Title",
63
  )
64
-
65
  with gr.Row():
66
  private = gr.Checkbox(
67
  False,
 
40
  This space allows you to clone a <a href="https://huggingface.co/docs/hub/collections">Collection</a> from the Hugging Face Hub into your own namespace.
41
  You can then edit the collection to your liking!</p>"""
42
  )
43
+ gr.Markdown("## Authentication")
44
  gr.Markdown(
45
  "Token is required to create a new collection and clone private collections. You can get your token from your [profile page](https://huggingface.co/settings/token)."
46
  )
 
52
  with gr.Column():
53
  gr.Markdown("## Source Collection")
54
  source_slug = gr.Textbox(
55
+ label="Source Collection Slug", placeholder="e.g. username/collection-slug"
56
  )
57
  gr.Markdown("## Destination Collection info")
58
  dest_namespace = gr.Textbox(
 
62
  dest_title = gr.Textbox(
63
  label="Destination Title",
64
  )
 
65
  with gr.Row():
66
  private = gr.Checkbox(
67
  False,