davanstrien HF staff commited on
Commit
c1b15b4
1 Parent(s): eb9f45f

formatting

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -76,11 +76,8 @@ def format_results(
76
  similarity = result["similarity"]
77
  url = f"https://huggingface.co/datasets/{hub_id}"
78
 
79
- # Extract title from the card
80
- title_match = re.match(r"^#\s*(.+)", card, re.MULTILINE)
81
- title = title_match[1] if title_match else hub_id
82
-
83
- header = f"## [{title}]({url})"
84
  markdown += header + "\n"
85
  markdown += f"**Similarity Score:** {similarity:.4f}\n\n"
86
 
 
76
  similarity = result["similarity"]
77
  url = f"https://huggingface.co/datasets/{hub_id}"
78
 
79
+ # Always use the Hub ID as the title
80
+ header = f"## [{hub_id}]({url})"
 
 
 
81
  markdown += header + "\n"
82
  markdown += f"**Similarity Score:** {similarity:.4f}\n\n"
83