osanseviero commited on
Commit
f096cd8
1 Parent(s): 9e669b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -54,8 +54,8 @@ def duplicate(source_repo, dst_repo, token, repo_type):
54
  os.unlink(file_path)
55
  elif os.path.isdir(file_path):
56
  shutil.rmtree(file_path)
57
-
58
- return "sp.jpg"
59
 
60
  interface = gr.Interface(
61
  fn=duplicate,
@@ -65,7 +65,7 @@ interface = gr.Interface(
65
  gr.inputs.Textbox(placeholder="Write access token"),
66
  gr.inputs.Dropdown(choices=["model", "dataset", "space"])
67
  ],
68
- outputs=["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/token. This Space is a an experimental demo.",
71
  article="<p>Find your write token at <a href='https://huggingface.co/settings/token' target='_blank'>token settings</a></p>",
 
54
  os.unlink(file_path)
55
  elif os.path.isdir(file_path):
56
  shutil.rmtree(file_path)
57
+
58
+ return f"Find your repo in [{url}]({url})!", "sp.jpg"
59
 
60
  interface = gr.Interface(
61
  fn=duplicate,
 
65
  gr.inputs.Textbox(placeholder="Write access token"),
66
  gr.inputs.Dropdown(choices=["model", "dataset", "space"])
67
  ],
68
+ outputs=["markdown", "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/token. This Space is a an experimental demo.",
71
  article="<p>Find your write token at <a href='https://huggingface.co/settings/token' target='_blank'>token settings</a></p>",