Update main.py
Browse files
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)
|