Jackss commited on
Commit
dda9e37
·
1 Parent(s): 1dd5fed

added test html

Browse files
Files changed (1) hide show
  1. static/index.html +20 -0
static/index.html CHANGED
@@ -6,5 +6,25 @@
6
  </head>
7
  <body>
8
  Hello world!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  </body>
10
  </html>
 
6
  </head>
7
  <body>
8
  Hello world!
9
+ <script>
10
+
11
+ papers = [
12
+ {'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
13
+ {'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}
14
+ ]
15
+
16
+ fetch('similarity', {
17
+ method: 'POST',
18
+ headers: {
19
+ 'Accept': 'application/json',
20
+ 'Content-Type': 'application/json'
21
+ },
22
+ body: JSON.stringify(papers)
23
+ });
24
+
25
+ const content = await rawResponse.json();
26
+ console.log(content)
27
+
28
+ </script>
29
  </body>
30
  </html>