yashxx07 commited on
Commit
201044a
·
verified ·
1 Parent(s): 6cdeb9f

Update emails.js

Browse files
Files changed (1) hide show
  1. emails.js +2 -2
emails.js CHANGED
@@ -116,7 +116,7 @@ async function getTopNews(category) {
116
  async function getSummary(url) {
117
 
118
  //console.log(url)
119
- const apiUrl = 'https://yashxx07-summarize-articles.hf.space/summarize-v1';
120
  const options = {
121
  method: 'POST',
122
  headers: {
@@ -124,7 +124,7 @@ async function getSummary(url) {
124
  },
125
  body: JSON.stringify({
126
  "url": url,
127
- "max_tokens": 500
128
  })
129
  };
130
 
 
116
  async function getSummary(url) {
117
 
118
  //console.log(url)
119
+ const apiUrl = 'https://yashxx07-summarize-articles.hf.space/summarize-v2';
120
  const options = {
121
  method: 'POST',
122
  headers: {
 
124
  },
125
  body: JSON.stringify({
126
  "url": url,
127
+ "max_tokens": 10
128
  })
129
  };
130