diff --git a/web/chat.js b/web/chat.js index c216675..2311029 100644 --- a/web/chat.js +++ b/web/chat.js @@ -40,6 +40,18 @@ async function pollTask(taskId) { }, 1500); } +async function importExcel() { + const file = document.getElementById("excelFile").files[0]; + const form = new FormData(); + form.append("file", file); + + await fetch(`/api/import_excel/${conversationId}`, { + method: "POST", + body: form + }); + + await loadHistory(); +}