Spaces:
Running
Running
Update emails.js
Browse files
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-
|
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":
|
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 |
|