Spaces:
Running
Running
File size: 597 Bytes
0136a5b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from dataclasses import dataclass
from datetime import datetime
import logging
def get_logger(sink_name: str = "core_utils") -> logging.Logger:
logging.basicConfig(
format="%(asctime)s,%(msecs)03d %(levelname)-8s "
"[%(filename)s:%(lineno)d] %(message)s",
datefmt="%Y-%m-%d:%H:%M:%S",
level=logging.INFO,
force=True,
)
logger = logging.getLogger(sink_name)
return logger
@dataclass
class Vote:
timestamp: str
prompt: str
response_a: str
response_b: str
model_a: str
model_b: str
winner: str
judge_id: str
|