Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
8d4da4c
1
Parent(s):
27bc940
Change vote CommitScheduler
Browse files- utils/vote_logger.py +1 -1
utils/vote_logger.py
CHANGED
@@ -58,7 +58,7 @@ def save_vote_details(example, model_a, model_b, winner, feedback, summary_a, su
|
|
58 |
|
59 |
try:
|
60 |
# Open the file in append mode
|
61 |
-
with vote_details_scheduler:
|
62 |
with open(csv_path, 'a', newline='', encoding='utf-8') as f:
|
63 |
writer = csv.DictWriter(f, fieldnames=vote_record.keys())
|
64 |
|
|
|
58 |
|
59 |
try:
|
60 |
# Open the file in append mode
|
61 |
+
with vote_details_scheduler.lock:
|
62 |
with open(csv_path, 'a', newline='', encoding='utf-8') as f:
|
63 |
writer = csv.DictWriter(f, fieldnames=vote_record.keys())
|
64 |
|