davanstrien HF Staff commited on
Commit
8b8c648
·
1 Parent(s): 504af34
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -88,7 +88,7 @@ def rank_space_and_org(space_or_org_id, filter_zero):
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 raking of Space likes\n\n"""
92
  result += """### ✨ Remember likes aren't everything!✨\n"""
93
  result += """Some Spaces go very viral whilst other Spaces may be very useful for a smaller audience. If you think your Space is useful, please add it to this [thread](https://huggingface.co/spaces/librarian-bots/ranker/discussions/3) of awesome Spaces.
94
  We'll look out for awesome Spaces added to this thread to promote more widely!"""
@@ -100,7 +100,7 @@ def rank_space_and_org(space_or_org_id, filter_zero):
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 raking 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"""
106
  result += """### ✨ Remember likes aren't everything!✨\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"""
93
  result += """Some Spaces go very viral whilst other Spaces may be very useful for a smaller audience. If you think your Space is useful, please add it to this [thread](https://huggingface.co/spaces/librarian-bots/ranker/discussions/3) of awesome Spaces.
94
  We'll look out for awesome Spaces added to this thread to promote more widely!"""
 
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"""
106
  result += """### ✨ Remember likes aren't everything!✨\n"""