chore: format
This commit is contained in:
@@ -362,7 +362,9 @@ class FeedbackTable:
|
||||
d = start_date + timedelta(days=i)
|
||||
date_str = d.strftime("%Y-%m-%d")
|
||||
counts = daily_counts.get(date_str, {"won": 0, "lost": 0})
|
||||
result.append(ModelHistoryEntry(date=date_str, won=counts["won"], lost=counts["lost"]))
|
||||
result.append(
|
||||
ModelHistoryEntry(date=date_str, won=counts["won"], lost=counts["lost"])
|
||||
)
|
||||
|
||||
return result
|
||||
|
||||
|
||||
@@ -51,7 +51,9 @@ router = APIRouter()
|
||||
|
||||
import os
|
||||
|
||||
EMBEDDING_MODEL_NAME = os.environ.get("AUXILIARY_EMBEDDING_MODEL", "TaylorAI/bge-micro-v2")
|
||||
EMBEDDING_MODEL_NAME = os.environ.get(
|
||||
"AUXILIARY_EMBEDDING_MODEL", "TaylorAI/bge-micro-v2"
|
||||
)
|
||||
_embedding_model = None
|
||||
|
||||
|
||||
@@ -258,8 +260,6 @@ async def get_leaderboard(
|
||||
return LeaderboardResponse(entries=entries)
|
||||
|
||||
|
||||
|
||||
|
||||
@router.get("/leaderboard/{model_id}/history", response_model=ModelHistoryResponse)
|
||||
async def get_model_history(
|
||||
model_id: str,
|
||||
|
||||
Reference in New Issue
Block a user