Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
mrfakename
commited on
Commit
•
00a2513
1
Parent(s):
aea0389
fix sql
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def get_leaderboard(reveal_prelim: bool):
|
|
81 |
conn = get_db()
|
82 |
cursor = conn.cursor()
|
83 |
sql = 'SELECT name, upvote, downvote FROM model'
|
84 |
-
if not reveal_prelim: sql += 'WHERE EXISTS (SELECT 1 FROM model WHERE (upvote + downvote) > 750)'
|
85 |
cursor.execute(sql)
|
86 |
data = cursor.fetchall()
|
87 |
df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])
|
|
|
81 |
conn = get_db()
|
82 |
cursor = conn.cursor()
|
83 |
sql = 'SELECT name, upvote, downvote FROM model'
|
84 |
+
if not reveal_prelim: sql += ' WHERE EXISTS (SELECT 1 FROM model WHERE (upvote + downvote) > 750)'
|
85 |
cursor.execute(sql)
|
86 |
data = cursor.fetchall()
|
87 |
df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])
|