mominah commited on
Commit
de37d9a
·
verified ·
1 Parent(s): 78c2297

Update check.py

Browse files
Files changed (1) hide show
  1. check.py +3 -3
check.py CHANGED
@@ -165,7 +165,7 @@ def load_answer_key(pdf_bytes: bytes) -> dict:
165
  # FastAPI Endpoints
166
  ##############################################################
167
 
168
- @@router.post("/process")
169
  async def process_pdfs(
170
  original_pdf: UploadFile = File(..., description="PDF with all student answer sheets (one page per student)"),
171
  paper_k_pdf: UploadFile = File(..., description="Answer key PDF for Paper K")
@@ -227,7 +227,7 @@ async def process_pdfs(
227
  raise HTTPException(status_code=500, detail=str(e))
228
 
229
 
230
- @@router.get("/download")
231
  async def download_results():
232
  """
233
  Returns the result JSON file stored in the temporary folder.
@@ -241,7 +241,7 @@ async def download_results():
241
  )
242
 
243
 
244
- @@router.get("/")
245
  async def root():
246
  return {
247
  "message": "Welcome to the Student Result Card API (Paper K only).",
 
165
  # FastAPI Endpoints
166
  ##############################################################
167
 
168
+ @router.post("/process")
169
  async def process_pdfs(
170
  original_pdf: UploadFile = File(..., description="PDF with all student answer sheets (one page per student)"),
171
  paper_k_pdf: UploadFile = File(..., description="Answer key PDF for Paper K")
 
227
  raise HTTPException(status_code=500, detail=str(e))
228
 
229
 
230
+ @router.get("/download")
231
  async def download_results():
232
  """
233
  Returns the result JSON file stored in the temporary folder.
 
241
  )
242
 
243
 
244
+ @router.get("/")
245
  async def root():
246
  return {
247
  "message": "Welcome to the Student Result Card API (Paper K only).",