cakiki commited on
Commit
2e2eeaa
β€’
1 Parent(s): 4fa22d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -16,19 +16,19 @@ def get_docid_html(docid):
16
  docid_html = (
17
  f"<a "
18
  f'class="underline-on-hover"'
19
- f'title="PRIVATE DATASET"'
20
  f'style="color:#AA4A44;"'
21
  f'href="https://huggingface.co/datasets/bigscience-data/{dataset}"'
22
- f'target="_blank">{dataset}</a><span style="color: #7978FF;">/{docid}</span>'
23
  )
24
  else:
25
  docid_html = (
26
  f"<a "
27
  f'class="underline-on-hover"'
28
- f'title="License: {metadata.tags[0].split(":")[-1]}"'
29
  f'style="color:#2D31FA;"'
30
  f'href="https://huggingface.co/datasets/bigscience-data/{dataset}"'
31
- f'target="_blank">{dataset}</a><span style="color: #7978FF;">/{docid}</span>'
32
  )
33
  return docid_html
34
 
 
16
  docid_html = (
17
  f"<a "
18
  f'class="underline-on-hover"'
19
+ f'title="This dataset is private. See the introductory text for more information"'
20
  f'style="color:#AA4A44;"'
21
  f'href="https://huggingface.co/datasets/bigscience-data/{dataset}"'
22
+ f'target="_blank"><b>πŸ”’{dataset}</b></a><span style="color: #7978FF;">/{docid}</span>'
23
  )
24
  else:
25
  docid_html = (
26
  f"<a "
27
  f'class="underline-on-hover"'
28
+ f'title="This dataset is licensed {metadata.tags[0].split(":")[-1]}"'
29
  f'style="color:#2D31FA;"'
30
  f'href="https://huggingface.co/datasets/bigscience-data/{dataset}"'
31
+ f'target="_blank"><b>{dataset}</b></a><span style="color: #7978FF;">/{docid}</span>'
32
  )
33
  return docid_html
34