Browse Source

server update json

master
cailean 4 months ago
parent
commit
42d3ab908d
  1. 2730
      embeddings.json
  2. 5
      server.js
  3. 2
      tree.txt

2730
embeddings.json

File diff suppressed because it is too large

5
server.js

@ -47,10 +47,7 @@ app.post('/search/', (req, res) => {
let idx = queryVPTree(vector) let idx = queryVPTree(vector)
// Retrieve the filename from the stored JSON data res.send({folder: jsonEmbeddings[idx].folder, frame: jsonEmbeddings[idx].frame, video: jsonEmbeddings[idx].video});
let filename = idx !== undefined && idx < jsonEmbeddings.length ? jsonEmbeddings[idx].filename : null;
res.send({filename});
}); });
function queryVPTree(value){ function queryVPTree(value){

2
tree.txt

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save