Spaces:
Runtime error
Runtime error
Commit
•
fa34e34
1
Parent(s):
00785bd
formatting
Browse files
app.py
CHANGED
@@ -63,11 +63,11 @@ def rank_space_and_org(space_or_org_id, filter_zero):
|
|
63 |
if len(split) == 2:
|
64 |
space_rank = relative_rank_for_space(space_or_org_id, filter_zero=filter_zero)
|
65 |
return f"""Space {space_or_org_id} is ranked {space_rank['rank']:.2f}%
|
66 |
-
with {space_rank['num_higher']
|
67 |
if len(split) == 1:
|
68 |
org_rank = relative_rank_for_org(space_or_org_id, filter_zero=filter_zero)
|
69 |
return f"""Organization or user {space_or_org_id} is ranked {org_rank['rank']:.2f}%
|
70 |
-
with {org_rank['num_higher']
|
71 |
|
72 |
|
73 |
with gr.Blocks() as demo:
|
|
|
63 |
if len(split) == 2:
|
64 |
space_rank = relative_rank_for_space(space_or_org_id, filter_zero=filter_zero)
|
65 |
return f"""Space {space_or_org_id} is ranked {space_rank['rank']:.2f}%
|
66 |
+
with {space_rank['num_higher']:,} Spaces above and {space_rank['num_lower']:,} Spaces below in the raking."""
|
67 |
if len(split) == 1:
|
68 |
org_rank = relative_rank_for_org(space_or_org_id, filter_zero=filter_zero)
|
69 |
return f"""Organization or user {space_or_org_id} is ranked {org_rank['rank']:.2f}%
|
70 |
+
with {org_rank['num_higher']:,} orgs/users above and {org_rank['num_lower']:,} orgs/users below in the raking."""
|
71 |
|
72 |
|
73 |
with gr.Blocks() as demo:
|