Spaces:
Sleeping
Sleeping
ksvmuralidhar
commited on
Commit
•
dcf4c1e
1
Parent(s):
53a92c9
Update api.py
Browse files
api.py
CHANGED
@@ -160,9 +160,9 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE
|
|
160 |
|
161 |
@app.post("/generate_summary/", tags=["Generate Summary"], response_model=List[SuccessfulResponse],
|
162 |
responses={
|
163 |
-
401: {"model": AuthenticationError, "description": "Authentication Error"},
|
164 |
-
500: {"model": SummaryError, "description": "Summarizer Error
|
165 |
-
422: {"model": InputValidationError, "description": "Validation Error"}
|
166 |
})
|
167 |
async def generate_summary(q: URLList):
|
168 |
"""
|
|
|
160 |
|
161 |
@app.post("/generate_summary/", tags=["Generate Summary"], response_model=List[SuccessfulResponse],
|
162 |
responses={
|
163 |
+
401: {"model": AuthenticationError, "description": "Authentication Error: Returned when the entered API key is incorrect"},
|
164 |
+
500: {"model": SummaryError, "description": "Summarizer Error: Returned when the API couldn't generate the summary of even a single article"},
|
165 |
+
422: {"model": InputValidationError, "description": "Validation Error: Returned when the payload data doesn't match the data type requirements"}
|
166 |
})
|
167 |
async def generate_summary(q: URLList):
|
168 |
"""
|