Update minor deprecated stuff
Browse files
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.
|
| 64 |
-
gr.
|
| 65 |
-
gr.
|
| 66 |
-
gr.
|
| 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=
|
| 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)
|