loubnabnl HF Staff commited on
Commit
b694d90
·
1 Parent(s): cc00706

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"**Dataset description**\nTitle: '{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**.\n{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"**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**.<br>{data_text}"
30
  return text
31
 
32
  samples = load_data()