Spaces:
Sleeping
Sleeping
ksvmuralidhar
commited on
Commit
•
ce71542
1
Parent(s):
c3060aa
Update api.py
Browse files
api.py
CHANGED
@@ -82,7 +82,6 @@ async def scrape_urls(urls):
|
|
82 |
description = "API to generate summaries of news articles from their URLs."
|
83 |
app = FastAPI(title='News Summarizer API',
|
84 |
description=description,
|
85 |
-
summary="News article summary generator",
|
86 |
version="0.0.1",
|
87 |
contact={
|
88 |
"name": "Author: KSV Muralidhar",
|
@@ -136,7 +135,7 @@ def authenticate_key(api_key: str):
|
|
136 |
raise NewsSummarizerAPIAuthenticationError("Authentication error: Invalid API key.")
|
137 |
|
138 |
|
139 |
-
@app.post("/generate_summary/", tags=[""], response_model=List[SuccessfulResponse],
|
140 |
responses={
|
141 |
401: {"model": AuthenticationError, "description": "Authentication Error"},
|
142 |
500: {"model": SummaryError, "description": "Summarizer Error"}
|
|
|
82 |
description = "API to generate summaries of news articles from their URLs."
|
83 |
app = FastAPI(title='News Summarizer API',
|
84 |
description=description,
|
|
|
85 |
version="0.0.1",
|
86 |
contact={
|
87 |
"name": "Author: KSV Muralidhar",
|
|
|
135 |
raise NewsSummarizerAPIAuthenticationError("Authentication error: Invalid API key.")
|
136 |
|
137 |
|
138 |
+
@app.post("/generate_summary/", tags=["Generate Summary"], response_model=List[SuccessfulResponse],
|
139 |
responses={
|
140 |
401: {"model": AuthenticationError, "description": "Authentication Error"},
|
141 |
500: {"model": SummaryError, "description": "Summarizer Error"}
|