julien-c HF staff commited on
Commit
574ae04
1 Parent(s): 6e29aba

Update minor deprecated stuff

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -60,16 +60,16 @@ def duplicate(source_repo, dst_repo, token, repo_type):
60
  interface = gr.Interface(
61
  fn=duplicate,
62
  inputs=[
63
- gr.inputs.Textbox(placeholder="Source repository (e.g. osanseviero/src)"),
64
- gr.inputs.Textbox(placeholder="Destination repository (e.g. osanseviero/dst)"),
65
- gr.inputs.Textbox(placeholder="Write access token"),
66
- gr.inputs.Dropdown(choices=["model", "dataset", "space"])
67
  ],
68
  outputs=["html", "image"] ,
69
  title="Duplicate your repo!",
70
  description="Duplicate a Hugging Face repository! You need to specify a write token obtained in https://hf.co/settings/tokens. This Space is a an experimental demo.",
71
  article="<p>Find your write token at <a href='https://huggingface.co/settings/tokens' target='_blank'>tokens settings</a></p>",
72
- allow_flagging=False,
73
  live=False,
74
  )
75
  interface.launch(enable_queue=True)
 
60
  interface = gr.Interface(
61
  fn=duplicate,
62
  inputs=[
63
+ gr.Textbox(placeholder="Source repository (e.g. osanseviero/src)"),
64
+ gr.Textbox(placeholder="Destination repository (e.g. osanseviero/dst)"),
65
+ gr.Textbox(placeholder="Write access token"),
66
+ gr.Dropdown(choices=["model", "dataset", "space"])
67
  ],
68
  outputs=["html", "image"] ,
69
  title="Duplicate your repo!",
70
  description="Duplicate a Hugging Face repository! You need to specify a write token obtained in https://hf.co/settings/tokens. This Space is a an experimental demo.",
71
  article="<p>Find your write token at <a href='https://huggingface.co/settings/tokens' target='_blank'>tokens settings</a></p>",
72
+ allow_flagging="never",
73
  live=False,
74
  )
75
  interface.launch(enable_queue=True)