Spaces:
Running
Running
mrfakename
commited on
Commit
•
40f7a3f
1
Parent(s):
f95f048
Update app.py
Browse files
app.py
CHANGED
@@ -302,7 +302,8 @@ def get_leaderboard(reveal_prelim: bool):
|
|
302 |
conn = get_db()
|
303 |
cursor = conn.cursor()
|
304 |
sql = 'SELECT name, upvote, downvote FROM model'
|
305 |
-
if not reveal_prelim: sql += ' WHERE EXISTS (SELECT 1 FROM model WHERE (upvote + downvote) > 750)'
|
|
|
306 |
cursor.execute(sql)
|
307 |
data = cursor.fetchall()
|
308 |
df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])
|
|
|
302 |
conn = get_db()
|
303 |
cursor = conn.cursor()
|
304 |
sql = 'SELECT name, upvote, downvote FROM model'
|
305 |
+
# if not reveal_prelim: sql += ' WHERE EXISTS (SELECT 1 FROM model WHERE (upvote + downvote) > 750)'
|
306 |
+
if not reveal_prelim: sql += ' WHERE (upvote + downvote) > 500'
|
307 |
cursor.execute(sql)
|
308 |
data = cursor.fetchall()
|
309 |
df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])
|