Skip to content

Commit

Permalink
try adding summarize
Browse files Browse the repository at this point in the history
  • Loading branch information
AditiR-42 committed Dec 11, 2024
1 parent 523b340 commit 60c0888
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api_service/api/routers/summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# In-memory storage for extracted issues
parsed_issues_storage = {"issues": []}

@router.post("/process-pdf/")
@router.post("/summarize/process-pdf/")
async def process_pdf(
pdf_file: UploadFile = File(...),
project_id: str = "473358048261",
Expand Down Expand Up @@ -58,7 +58,7 @@ async def process_pdf(
raise HTTPException(status_code=500, detail=f"Error processing file: {str(e)}")


@router.post("/get-grade/")
@router.post("/summarize/get-grade/")
async def get_grade():
"""
Grade the parsed privacy issues.
Expand Down
2 changes: 1 addition & 1 deletion src/api_service/api/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def get_api_status():

# Additional routers here
app.include_router(recommend.router)
app.include_router(summarize.router, prefix="/summarize")
app.include_router(summarize.router)



0 comments on commit 60c0888

Please sign in to comment.