Spaces:
Runtime error
Runtime error
as-cle-bert
commited on
Commit
•
f258331
1
Parent(s):
e260715
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def modelB_button():
|
|
47 |
df = pd.read_csv("models.csv")
|
48 |
df.loc[df["MODEL"] == choice["ModelB"], "MATCHES_WON"] += 1
|
49 |
df.loc[df["MODEL"] == choice["ModelB"], "WINNING_RATE"] = df.loc[df["MODEL"] == choice["ModelB"], "MATCHES_WON"]/df.loc[df["MODEL"] == choice["ModelB"], "MATCHES_PLAYED"]
|
50 |
-
df.to_csv("models.csv")
|
51 |
rewrite_csv_ordered_by_winning_rate("models.csv")
|
52 |
|
53 |
def reply(modelA, modelB, prompt):
|
|
|
47 |
df = pd.read_csv("models.csv")
|
48 |
df.loc[df["MODEL"] == choice["ModelB"], "MATCHES_WON"] += 1
|
49 |
df.loc[df["MODEL"] == choice["ModelB"], "WINNING_RATE"] = df.loc[df["MODEL"] == choice["ModelB"], "MATCHES_WON"]/df.loc[df["MODEL"] == choice["ModelB"], "MATCHES_PLAYED"]
|
50 |
+
df.to_csv("models.csv", index=False)
|
51 |
rewrite_csv_ordered_by_winning_rate("models.csv")
|
52 |
|
53 |
def reply(modelA, modelB, prompt):
|