Remove config.yml and fix regenerate fetch response

This commit is contained in:
Saba 2021-11-28 14:29:16 -05:00
parent 112868962b
commit 04132a2f34
2 changed files with 5 additions and 28 deletions

View file

@ -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: ''

View file

@ -39,12 +39,11 @@ regenerateButton.addEventListener("click", (event) => {
regenerateButton.disabled = true; regenerateButton.disabled = true;
fetch("/regenerate") fetch("/regenerate")
.then(response => response.json()) .then(response => response.json())
.then(data => () => .then(data => {
{ regenerateButton.style.cursor = "pointer";
regenerateButton.style.cursor = "pointer"; regenerateButton.disabled = false;
regenerateButton.disabled = false; console.log(data);
console.log(data); });
});
}) })
function processChildren(element, data) { function processChildren(element, data) {