Atualizar web/chat.js
This commit is contained in:
+12
@@ -40,6 +40,18 @@ async function pollTask(taskId) {
|
|||||||
}, 1500);
|
}, 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user