kz-transformers's picture
Update src/submission/submit.py
9009dc7 verified
raw
history blame
662 Bytes
# submit.py
import json
import os
from datetime import datetime, timezone
from src.display.formatting import styled_error, styled_message, styled_warning
from src.envs import API, TOKEN # <— no EVAL_REQUESTS_PATH or QUEUE_REPO import
def add_new_eval(
model: str,
base_model: str,
revision: str,
precision: str,
weight_type: str,
model_type: str,
):
# If you want some minimal check:
if not model or not model_type:
return styled_error("Please specify a model and model type.")
# Then either do something minimal or just say it's disabled:
return styled_warning("Queue logic is disabled in this space.")