davanstrien HF Staff commited on
Commit
cde3f2b
·
1 Parent(s): f70c67c

markdown format return value

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,11 +64,11 @@ def rank_space_and_org(space_or_org_id, filter_zero):
64
  split = space_or_org_id.split("/")
65
  if len(split) == 2:
66
  space_rank = relative_rank_for_space(space_or_org_id, filter_zero=filter_zero)
67
- return f"""Space {space_or_org_id} is ranked {space_rank['rank']:.2f}%
68
  with {space_rank['num_higher']:,} Spaces above and {space_rank['num_lower']:,} Spaces below in the raking of Space likes"""
69
  if len(split) == 1:
70
  org_rank = relative_rank_for_org(space_or_org_id, filter_zero=filter_zero)
71
- return f"""Organization or user {space_or_org_id} is ranked {org_rank['rank']:.2f}%
72
  with {org_rank['num_higher']:,} orgs/users above and {org_rank['num_lower']:,} orgs/users below in the raking of Space likes"""
73
 
74
 
 
64
  split = space_or_org_id.split("/")
65
  if len(split) == 2:
66
  space_rank = relative_rank_for_space(space_or_org_id, filter_zero=filter_zero)
67
+ return f"""Space [{space_or_org_id}](https://huggingface.co/spaces/{space_or_org_id}) is ranked {space_rank['rank']:.2f}%
68
  with {space_rank['num_higher']:,} Spaces above and {space_rank['num_lower']:,} Spaces below in the raking of Space likes"""
69
  if len(split) == 1:
70
  org_rank = relative_rank_for_org(space_or_org_id, filter_zero=filter_zero)
71
+ return f"""Organization or user [{space_or_org_id}](https://huggingface.co/{space_or_org_id}) is ranked {org_rank['rank']:.2f}%
72
  with {org_rank['num_higher']:,} orgs/users above and {org_rank['num_lower']:,} orgs/users below in the raking of Space likes"""
73
 
74