Jackss commited on
Commit
f4e792a
·
1 Parent(s): c4c2d5a
Files changed (1) hide show
  1. static/index.html +2 -1
static/index.html CHANGED
@@ -18,13 +18,14 @@
18
  ]
19
 
20
  async function getSimilarity(papers) {
 
21
  const response = await fetch('similarity', {
22
  method: 'POST',
23
  headers: {
24
  'Accept': 'application/json',
25
  'Content-Type': 'application/json'
26
  },
27
- body: JSON.stringify(papers)
28
  });
29
 
30
  const content = await response.json();
 
18
  ]
19
 
20
  async function getSimilarity(papers) {
21
+ const request = { papers }
22
  const response = await fetch('similarity', {
23
  method: 'POST',
24
  headers: {
25
  'Accept': 'application/json',
26
  'Content-Type': 'application/json'
27
  },
28
+ body: JSON.stringify(request)
29
  });
30
 
31
  const content = await response.json();