ksvmuralidhar commited on
Commit
144b3c3
1 Parent(s): f74ad3d

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +3 -3
api.py CHANGED
@@ -123,10 +123,10 @@ class URLList(BaseModel):
123
 
124
  class SuccessfulResponse(BaseModel):
125
  urls: List[str] = Field(..., description="List of URLs of news articles inputted by the user")
126
- scraped_texts: List[str] = Field(..., description="List of scraped text from input URLs".)
127
- scrape_errors: List[str] = Field("", description="List of errors raised during scraping. One item for corresponding URL.")
128
  summaries: List[str] = Field(..., description="List of generated summaries of news articles")
129
- summarizer_error: str = Field("", description="String specifying error raised during summary.")
130
 
131
  class AuthenticationError(BaseModel):
132
  urls: List[str] = Field(..., description="List of URLs of news articles inputted by the user")
 
123
 
124
  class SuccessfulResponse(BaseModel):
125
  urls: List[str] = Field(..., description="List of URLs of news articles inputted by the user")
126
+ scraped_texts: List[str] = Field(..., description="List of scraped text from input URLs")
127
+ scrape_errors: List[str] = Field("", description="List of errors raised during scraping. One item for corresponding URL")
128
  summaries: List[str] = Field(..., description="List of generated summaries of news articles")
129
+ summarizer_error: str = Field("", description="String specifying error raised during summary")
130
 
131
  class AuthenticationError(BaseModel):
132
  urls: List[str] = Field(..., description="List of URLs of news articles inputted by the user")