Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
@@ -141,7 +141,7 @@ def authenticate_key(api_key: str):
|
|
141 |
401: {"model": AuthenticationError, "description": "Authentication Error"},
|
142 |
500: {"model": SummaryError, "description": "Summarizer Error"}
|
143 |
})
|
144 |
-
async def
|
145 |
"""
|
146 |
Get summaries of news articles by passing the list of URLs as input.
|
147 |
|
@@ -149,7 +149,7 @@ async def read_items(q: URLList):
|
|
149 |
- **key**: Authentication key (required)
|
150 |
"""
|
151 |
try:
|
152 |
-
logging.warning("Entering
|
153 |
urls = ""
|
154 |
scraped_texts = ""
|
155 |
scrape_errors = ""
|
|
|
141 |
401: {"model": AuthenticationError, "description": "Authentication Error"},
|
142 |
500: {"model": SummaryError, "description": "Summarizer Error"}
|
143 |
})
|
144 |
+
async def generate_summary(q: URLList):
|
145 |
"""
|
146 |
Get summaries of news articles by passing the list of URLs as input.
|
147 |
|
|
|
149 |
- **key**: Authentication key (required)
|
150 |
"""
|
151 |
try:
|
152 |
+
logging.warning("Entering generate_summary()")
|
153 |
urls = ""
|
154 |
scraped_texts = ""
|
155 |
scrape_errors = ""
|