Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,11 +97,11 @@ for category in categories.keys():
|
|
| 97 |
# ------------------------------------------------------
|
| 98 |
|
| 99 |
# Add space URLs
|
| 100 |
-
|
| 101 |
|
| 102 |
-
#
|
| 103 |
# print("Top 10 spaces in each category with links:")
|
| 104 |
-
#for category in categories.keys():
|
| 105 |
# print(f"\n=== {category} ===")
|
| 106 |
# top_10 = df[df['category'] == category].nlargest(10, 'likes')[['title', 'likes', 'url']]
|
| 107 |
# Format output with padding for better readability
|
|
|
|
| 97 |
# ------------------------------------------------------
|
| 98 |
|
| 99 |
# Add space URLs
|
| 100 |
+
df['url'] = 'https://huggingface.co/spaces/' + df['id']
|
| 101 |
|
| 102 |
+
# Show the top 10 spaces from each category with their links
|
| 103 |
# print("Top 10 spaces in each category with links:")
|
| 104 |
+
# for category in categories.keys():
|
| 105 |
# print(f"\n=== {category} ===")
|
| 106 |
# top_10 = df[df['category'] == category].nlargest(10, 'likes')[['title', 'likes', 'url']]
|
| 107 |
# Format output with padding for better readability
|