Skip to content

Commit

Permalink
modified the summarizer route.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakibcy committed Apr 17, 2024
1 parent a2a568a commit 173f1f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/summarizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ router.post("/", async (req: Request, res: Response) => {
try {
const result = await summarizerGoogleAPI(text);
if (result) {
let ans = result;
res.send(ans.candidates[0].content.parts[0].text);
// let ans = result;
// res.send(ans.candidates[0].content.parts[0].text);
res.send(result);
}
} catch (err) {
console.log(err)
Expand Down

0 comments on commit 173f1f2

Please sign in to comment.