Spaces:
Runtime error
Runtime error
Pass Model objects to elo compute
Browse files- background_task.py +1 -1
background_task.py
CHANGED
@@ -91,7 +91,7 @@ class Matchmaking:
|
|
91 |
model2 = self.find_model(model2[0], model2[1])
|
92 |
result = row["result"]
|
93 |
if model1 is not None or model2 is not None:
|
94 |
-
self.compute_elo(
|
95 |
self.matches["model1"].append(model1.name)
|
96 |
self.matches["model2"].append(model2.name)
|
97 |
self.matches["result"].append(result)
|
|
|
91 |
model2 = self.find_model(model2[0], model2[1])
|
92 |
result = row["result"]
|
93 |
if model1 is not None or model2 is not None:
|
94 |
+
self.compute_elo(model1, model2, row["result"])
|
95 |
self.matches["model1"].append(model1.name)
|
96 |
self.matches["model2"].append(model2.name)
|
97 |
self.matches["result"].append(result)
|