Jackss commited on
Commit
4c48113
·
1 Parent(s): b743bd2
Files changed (1) hide show
  1. static/index.html +2 -2
static/index.html CHANGED
@@ -18,7 +18,7 @@
18
  ]
19
 
20
  async function getSimilarity(papers) {
21
- await fetch('similarity', {
22
  method: 'POST',
23
  headers: {
24
  'Accept': 'application/json',
@@ -27,7 +27,7 @@
27
  body: JSON.stringify(papers)
28
  });
29
 
30
- const content = await rawResponse.json();
31
  document.querySelector("#res").innerHTML = content.toString()
32
  }
33
 
 
18
  ]
19
 
20
  async function getSimilarity(papers) {
21
+ const response = await fetch('similarity', {
22
  method: 'POST',
23
  headers: {
24
  'Accept': 'application/json',
 
27
  body: JSON.stringify(papers)
28
  });
29
 
30
+ const content = await response.json();
31
  document.querySelector("#res").innerHTML = content.toString()
32
  }
33