From 04132a2f345ba2f229cd45f9e12c3e6102d7fb82 Mon Sep 17 00:00:00 2001 From: Saba Date: Sun, 28 Nov 2021 14:29:16 -0500 Subject: [PATCH] Remove config.yml and fix regenerate fetch response --- config.yml | 22 ---------------------- views/scripts/config.js | 11 +++++------ 2 files changed, 5 insertions(+), 28 deletions(-) delete mode 100644 config.yml diff --git a/config.yml b/config.yml deleted file mode 100644 index 23aa30ab..00000000 --- a/config.yml +++ /dev/null @@ -1,22 +0,0 @@ -content-type: - image: null - ledger: null - music: null - org: - compressed-jsonl: .notes.json.gz - embeddings-file: .note_embeddings.pt - input-files: - - /home/saba/notes/notes.org - - /home/saba/notes/writing.org - input-filter: null -processor: - conversation: - conversation-history: '' - conversation-logfile: .conversation_logs.json - open-api-key: null -search-type: - asymmetric: - cross-encoder: cross-encoder/ms-marco-MiniLM-L-6-v2 - encoder: sentence-transformers/msmarco-MiniLM-L-6-v3 - image: - encoder: '' diff --git a/views/scripts/config.js b/views/scripts/config.js index c5d9bd4b..89bf302a 100644 --- a/views/scripts/config.js +++ b/views/scripts/config.js @@ -39,12 +39,11 @@ regenerateButton.addEventListener("click", (event) => { regenerateButton.disabled = true; fetch("/regenerate") .then(response => response.json()) - .then(data => () => - { - regenerateButton.style.cursor = "pointer"; - regenerateButton.disabled = false; - console.log(data); - }); + .then(data => { + regenerateButton.style.cursor = "pointer"; + regenerateButton.disabled = false; + console.log(data); + }); }) function processChildren(element, data) {