jjkim
commited on
Commit
•
9328e33
1
Parent(s):
029f252
fix result type bug
Browse files- code_eval.py +1 -1
code_eval.py
CHANGED
@@ -266,7 +266,7 @@ class Result(BaseModel):
|
|
266 |
for i, future in enumerate(self.futures):
|
267 |
if self.result[i] is None and future.done():
|
268 |
try:
|
269 |
-
self.result[i] = future.result()
|
270 |
except CancelledError:
|
271 |
self.result[i] = "Early Stopped"
|
272 |
except Exception as e:
|
|
|
266 |
for i, future in enumerate(self.futures):
|
267 |
if self.result[i] is None and future.done():
|
268 |
try:
|
269 |
+
self.result[i] = future.result()["result"]
|
270 |
except CancelledError:
|
271 |
self.result[i] = "Early Stopped"
|
272 |
except Exception as e:
|