Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
mrfakename
commited on
Commit
•
1adab01
1
Parent(s):
dfca048
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def get_leaderboard():
|
|
72 |
cursor.execute('SELECT name, upvote, downvote FROM model WHERE (upvote + downvote) > 5')
|
73 |
data = cursor.fetchall()
|
74 |
df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])
|
75 |
-
df['license'] = df['name'].
|
76 |
df['name'] = df['name'].replace(model_names)
|
77 |
df['votes'] = df['upvote'] + df['downvote']
|
78 |
# df['score'] = round((df['upvote'] / df['votes']) * 100, 2) # Percentage score
|
|
|
72 |
cursor.execute('SELECT name, upvote, downvote FROM model WHERE (upvote + downvote) > 5')
|
73 |
data = cursor.fetchall()
|
74 |
df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])
|
75 |
+
df['license'] = df['name'].map(model_licenses).fillna("Unknown")
|
76 |
df['name'] = df['name'].replace(model_names)
|
77 |
df['votes'] = df['upvote'] + df['downvote']
|
78 |
# df['score'] = round((df['upvote'] / df['votes']) * 100, 2) # Percentage score
|