osanseviero commited on
Commit
7f37cc9
·
1 Parent(s): 16087a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,7 +55,7 @@ def duplicate(source_repo, dst_repo, token, repo_type):
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,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=["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>",
 
55
  elif os.path.isdir(file_path):
56
  shutil.rmtree(file_path)
57
 
58
+ return f"Find your repo <a href=\"{url}" target=\"_blank\">here</a>", "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=["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/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>",