from fastapi import APIRouter
from .utils.evaluation import ImageEvaluationRequest
from .utils.emissions import get_space_info

router = APIRouter()

DESCRIPTION = "Random Baseline"

@router.post("/image", tags=["Image Task"],
             description=DESCRIPTION)
async def evaluate_image(request: ImageEvaluationRequest):
    """
    Evaluate image classification.
    
    Current Model: Random Baseline
    - Makes random predictions
    - Used as a baseline for comparison
    """
    username, space_url = get_space_info()
    return {
        "message": "Image evaluation endpoint not yet implemented",
        "username": username,
        "space_url": space_url,
        "model_description": DESCRIPTION,
        "received_config": {
            "dataset_name": request.dataset_name,
            "test_size": request.test_size,
            "test_seed": request.test_seed
        }
    }