ksvmuralidhar commited on
Commit
18191d2
·
verified ·
1 Parent(s): 34938c5

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +2 -2
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 read_items(q: URLList):
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 read_items()")
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 = ""