Spaces:
Running
Running
mrfakename
commited on
Commit
•
b972230
1
Parent(s):
6a94997
Update app.py
Browse files
app.py
CHANGED
@@ -301,7 +301,7 @@ def get_leaderboard(reveal_prelim: bool):
|
|
301 |
cursor.execute(sql)
|
302 |
data = cursor.fetchall()
|
303 |
df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])
|
304 |
-
df['license'] = df['name'].map(model_license)
|
305 |
df['name'] = df['name'].replace(model_names)
|
306 |
df['votes'] = df['upvote'] + df['downvote']
|
307 |
# df['score'] = round((df['upvote'] / df['votes']) * 100, 2) # Percentage score
|
|
|
301 |
cursor.execute(sql)
|
302 |
data = cursor.fetchall()
|
303 |
df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])
|
304 |
+
df['license'] = df['name'].map(model_license)
|
305 |
df['name'] = df['name'].replace(model_names)
|
306 |
df['votes'] = df['upvote'] + df['downvote']
|
307 |
# df['score'] = round((df['upvote'] / df['votes']) * 100, 2) # Percentage score
|