From 65c25684276de052edb2f1265da0076d12eb9014 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 27 Mar 2023 22:23:36 +0100 Subject: [PATCH] Update app.py --- application/app.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/application/app.py b/application/app.py index c620caa2..882a2cbc 100644 --- a/application/app.py +++ b/application/app.py @@ -285,7 +285,17 @@ def combined_json(): """Provide json file with combined available indexes.""" # get json from https://d3dg1063dc54p9.cloudfront.net/combined.json - data = [] + data = [{ + "name": 'default', + "language": 'default', + "version": '', + "description": 'default', + "fullName": 'default', + "date": 'default', + "docLink": 'default', + "model": embeddings_choice, + "location": "local" + }] # structure: name, language, version, description, fullName, date, docLink # append data from vectors_collection for index in vectors_collection.find({'user': user}):