loubnabnl HF Staff commited on
Commit
2bc5907
·
1 Parent(s): af461c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,11 +22,11 @@ def show_extra_info(e):
22
  data_title = data_v["Title"]
23
  import numpy as np
24
  decription = data_v["Description"] if str(data_v["Description"]) != 'nan' else "<empty_description>"
25
- data_text = f"<br>## 📚 Dataset description:<br>Title: **{data_title}**, described as: {decription}."
26
  else:
27
  data_text = ""
28
 
29
- text = f"The title of the notebook is: **{kv['Title']}** and it has **{kv['TotalVotes']} upvotes**.{data_text}"
30
  return text
31
 
32
  samples = load_data()
 
22
  data_title = data_v["Title"]
23
  import numpy as np
24
  decription = data_v["Description"] if str(data_v["Description"]) != 'nan' else "<empty_description>"
25
+ data_text = f"<br>##📚 Dataset description:<br>Title: **{data_title}**, described as: {decription}."
26
  else:
27
  data_text = ""
28
 
29
+ text = f"The title of the notebook is: **{kv['Title']}** and it has **{kv['TotalVotes']} ⬆️ upvotes**.{data_text}"
30
  return text
31
 
32
  samples = load_data()