Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ os.chdir("compute-power-leaderboard.git")
|
|
15 |
|
16 |
result = subprocess.check_output("git log -1 --pretty=%B", shell=True, universal_newlines=True).replace("Upload", "").replace("/data.csv with huggingface_hub", "").strip().replace(" ", "%20")
|
17 |
|
18 |
-
os.system(f"wget -Odata.csv https://huggingface.co/datasets/Weyaxi/compute-power-leaderboard/resolve/main/{result}/data.csv
|
19 |
|
20 |
|
21 |
def clickable(x):
|
@@ -47,11 +47,11 @@ df_author_copy = df.copy()
|
|
47 |
df["Author"] = df["Author"].apply(lambda x: clickable(x))
|
48 |
df = df.sort_values(by='TFLOPS', ascending=False)
|
49 |
df['Serial Number'] = [i for i in range(1, len(df)+1)]
|
50 |
-
df = df[['Serial Number', "Author", "TFLOPS", "Type"]]
|
51 |
-
|
52 |
-
df = apply_headers(df, ["🔢 Serial Number", "👤 Author", "🖥️ TFLOPS", "🏷️ Type"])
|
53 |
|
|
|
54 |
|
|
|
55 |
desc = f"""
|
56 |
🎯 The Leaderboard aims to track users compute power in Huggingface.
|
57 |
|
@@ -67,6 +67,7 @@ These 4000 users have been selected based on their [🤗 Huggingface Leaderboard
|
|
67 |
|
68 |
- 🚀 Top 1100 authors in the spaces category
|
69 |
|
|
|
70 |
|
71 |
## 🤝 I want to see someone here
|
72 |
|
@@ -87,6 +88,7 @@ title = """
|
|
87 |
|
88 |
with gr.Blocks() as demo:
|
89 |
gr.Markdown("""<h1 align="center" id="space-title">🖥️ Compute Power Leaderboard 🖥️</h1>""")
|
|
|
90 |
gr.Markdown(desc)
|
91 |
with gr.Column(min_width=320):
|
92 |
search_bar = gr.Textbox(placeholder="🔍 Search for a author", show_label=False)
|
|
|
15 |
|
16 |
result = subprocess.check_output("git log -1 --pretty=%B", shell=True, universal_newlines=True).replace("Upload", "").replace("/data.csv with huggingface_hub", "").strip().replace(" ", "%20")
|
17 |
|
18 |
+
os.system(f"wget -Odata.csv https://huggingface.co/datasets/Weyaxi/compute-power-leaderboard/resolve/main/{result}/data.csv")
|
19 |
|
20 |
|
21 |
def clickable(x):
|
|
|
47 |
df["Author"] = df["Author"].apply(lambda x: clickable(x))
|
48 |
df = df.sort_values(by='TFLOPS', ascending=False)
|
49 |
df['Serial Number'] = [i for i in range(1, len(df)+1)]
|
50 |
+
df = df[['Serial Number', "Author", "TFLOPS", "Type"]];
|
|
|
|
|
51 |
|
52 |
+
df['Type'] = df['Type'].apply(lambda x: f'<img src="https://huggingface.co{x}" width="65" height="75">')
|
53 |
|
54 |
+
df = apply_headers(df, ["🔢 Serial Number", "👤 Author", "🖥️ TFLOPS", "🏷️ Type"])
|
55 |
desc = f"""
|
56 |
🎯 The Leaderboard aims to track users compute power in Huggingface.
|
57 |
|
|
|
67 |
|
68 |
- 🚀 Top 1100 authors in the spaces category
|
69 |
|
70 |
+
**Note that the majority of this 4000 users didn't inlclude their compute power.**
|
71 |
|
72 |
## 🤝 I want to see someone here
|
73 |
|
|
|
88 |
|
89 |
with gr.Blocks() as demo:
|
90 |
gr.Markdown("""<h1 align="center" id="space-title">🖥️ Compute Power Leaderboard 🖥️</h1>""")
|
91 |
+
gr.Markdown("""<h1 align="center" id="space-title"><img src="https://huggingface.co/front/assets/hardware/gpu.png" width="75" height="75" style="display:inline-block;"><img src="https://huggingface.co/front/assets/hardware/apple-silicon.svg" width="75" height="75" style="display:inline-block;"><img src="https://huggingface.co/front/assets/hardware/cpu.png" width="75" height="75" style="display:inline-block;"></h1>""")
|
92 |
gr.Markdown(desc)
|
93 |
with gr.Column(min_width=320):
|
94 |
search_bar = gr.Textbox(placeholder="🔍 Search for a author", show_label=False)
|