File size: 750 Bytes
1dd5fed
 
 
 
 
 
 
 
dda9e37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1dd5fed
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  Hello world!
  <script>

  papers = [
    {'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
    {'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}
  ]

  fetch('similarity', {
    method: 'POST',
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify(papers)
  });

  const content = await rawResponse.json();
  console.log(content)

  </script>
</body>
</html>