davanstrien HF staff commited on
Commit
24f13dd
·
1 Parent(s): 05ceda0

update url format

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,7 +26,8 @@ def format_results(results):
26
  markdown = ""
27
  for result in results:
28
  hub_id = result.payload["id"]
29
- url = hf_hub_url(hub_id, "README.md", repo_type="dataset")
 
30
  header = f"## [{hub_id}]({url})"
31
  markdown += header + "\n"
32
  markdown += result.payload["section_text"] + "\n"
 
26
  markdown = ""
27
  for result in results:
28
  hub_id = result.payload["id"]
29
+ # url = hf_hub_url(hub_id, "README.md", repo_type="dataset")
30
+ url = f"https://huggingface.co/datasets/{hub_id}"
31
  header = f"## [{hub_id}]({url})"
32
  markdown += header + "\n"
33
  markdown += result.payload["section_text"] + "\n"