davanstrien HF Staff commited on
Commit
94aadae
·
1 Parent(s): 8b8c648

clarity fix

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def rank_space_and_org(space_or_org_id, filter_zero):
86
  result = "## ⭐️ Space Likes Rankings ⭐️\n"
87
  result += f"""Here are the rankings by likes for [`{space_or_org_id}`](https://huggingface.co/spaces/{space_or_org_id}) across all Spaces \n"""
88
  result += f"""- You have {space_rank['value']:,} likes for this Space.\n"""
89
- result += f"""- Your Space is ranked {space_rank['position']:,} out of {len(create_space_to_like_dict()):,} Spaces.\n"""
90
  result += f"""- Space [{space_or_org_id}](https://huggingface.co/spaces/{space_or_org_id}) is ranked {space_rank['rank']:.2f}%\n"""
91
  result += f"""- You have {space_rank['num_higher']:,} Spaces above and {space_rank['num_lower']:,} Spaces below in the ranking of Space likes\n\n"""
92
  result += """### ✨ Remember likes aren't everything!✨\n"""
@@ -99,7 +99,7 @@ def rank_space_and_org(space_or_org_id, filter_zero):
99
  result = "## ⭐️ Org/User Space Likes Rankings ⭐️\n"
100
  result += "Here are the rankings for the org/user across all of their spaces \n"
101
  result += f"""- You have {org_rank['value']:,} likes for this org/user.\n"""
102
- result += f"""- Your org/user is ranked {org_rank['position']:,} out of {len(create_org_to_like_dict()):,} orgs/users.\n"""
103
  result += f"""- You have {org_rank['num_higher']:,} orgs/users above and {org_rank['num_lower']:,} orgs/users below in the ranking of Space likes \n\n"""
104
  result += f"""- Organization or user [{space_or_org_id}](https://huggingface.co/{space_or_org_id}) is ranked in the top {org_rank['rank']:.2f}% \n\n"""
105
  result += f"""You can find all your Spaces sorted by likes [here](https://huggingface.co/{space_or_org_id}?sort_spaces=likes#spaces)\n"""
 
86
  result = "## ⭐️ Space Likes Rankings ⭐️\n"
87
  result += f"""Here are the rankings by likes for [`{space_or_org_id}`](https://huggingface.co/spaces/{space_or_org_id}) across all Spaces \n"""
88
  result += f"""- You have {space_rank['value']:,} likes for this Space.\n"""
89
+ result += f"""- Your Space is ranked {space_rank['position']:,}.\n"""
90
  result += f"""- Space [{space_or_org_id}](https://huggingface.co/spaces/{space_or_org_id}) is ranked {space_rank['rank']:.2f}%\n"""
91
  result += f"""- You have {space_rank['num_higher']:,} Spaces above and {space_rank['num_lower']:,} Spaces below in the ranking of Space likes\n\n"""
92
  result += """### ✨ Remember likes aren't everything!✨\n"""
 
99
  result = "## ⭐️ Org/User Space Likes Rankings ⭐️\n"
100
  result += "Here are the rankings for the org/user across all of their spaces \n"
101
  result += f"""- You have {org_rank['value']:,} likes for this org/user.\n"""
102
+ result += f"""- Your org/user is ranked {org_rank['position']:,}\n"""
103
  result += f"""- You have {org_rank['num_higher']:,} orgs/users above and {org_rank['num_lower']:,} orgs/users below in the ranking of Space likes \n\n"""
104
  result += f"""- Organization or user [{space_or_org_id}](https://huggingface.co/{space_or_org_id}) is ranked in the top {org_rank['rank']:.2f}% \n\n"""
105
  result += f"""You can find all your Spaces sorted by likes [here](https://huggingface.co/{space_or_org_id}?sort_spaces=likes#spaces)\n"""