Hammad712 commited on
Commit
a11f225
·
verified ·
1 Parent(s): 6b15951

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +8 -0
main.py CHANGED
@@ -309,5 +309,13 @@ async def process_pdfs(
309
  raise HTTPException(status_code=500, detail=str(e))
310
 
311
 
 
 
 
 
 
 
 
 
312
  if __name__ == "__main__":
313
  uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)
 
309
  raise HTTPException(status_code=500, detail=str(e))
310
 
311
 
312
+ @app.get("/")
313
+ async def root():
314
+ return {
315
+ "message": "Welcome to the Student Result Card API.",
316
+ "usage": "POST PDFs to /process with 'student_pdf' and 'answer_key_pdf' fields. Use ?download=true for file download."
317
+ }
318
+
319
+
320
  if __name__ == "__main__":
321
  uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)