Spaces:
Build error
Build error
Download app/api/routes/grading.py from AdarshDS/ThesisBackend: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/spaces/AdarshDS/ThesisBackend/resolve/main/app/api/routes/grading.py
- Command line
-
hf download hf://spaces/AdarshDS/ThesisBackend/app/api/routes/grading.py
-
curl -L -o grading.py https://huggingface.co/spaces/AdarshDS/ThesisBackend/resolve/main/app/api/routes/grading.py
347 Bytes
| from fastapi import APIRouter, UploadFile, File | |
| from app.schemas.grading import GradingResponse | |
| from app.services.grading_service import grade_annotation | |
| router = APIRouter(prefix="/grade-annotation", tags=["Grading"]) | |
| def grade(file: UploadFile = File(...)): | |
| return grade_annotation(file) | |