Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
@@ -137,17 +137,7 @@ def authenticate_key(api_key: str):
|
|
137 |
raise NewsSummarizerAPIAuthenticationError("Authentication error: Invalid API key.")
|
138 |
|
139 |
|
140 |
-
@app.post("/generate_summary/", response_model=List[Summary]
|
141 |
-
responses={
|
142 |
-
200: {
|
143 |
-
"description": "List of summaries for each URL",
|
144 |
-
"content": {
|
145 |
-
"application/json": {
|
146 |
-
"schema": List[Summary]
|
147 |
-
}
|
148 |
-
}
|
149 |
-
}
|
150 |
-
})
|
151 |
async def read_items(q: URLList):
|
152 |
try:
|
153 |
logging.warning("Entering read_items()")
|
|
|
137 |
raise NewsSummarizerAPIAuthenticationError("Authentication error: Invalid API key.")
|
138 |
|
139 |
|
140 |
+
@app.post("/generate_summary/", response_model=List[Summary])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
async def read_items(q: URLList):
|
142 |
try:
|
143 |
logging.warning("Entering read_items()")
|