Skip to content
Snippets Groups Projects
Commit 32694a05 authored by Tarek Shah's avatar Tarek Shah
Browse files

dbUploadRawTextFiles file

parent 27feb598
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,26 @@ export const dbUpdateCollectionSummary = async (collection_id) => {
return result
};
export const dbUploadRawTextFiles = async (collection_id,formData) => {
console.log("dbUpdateCollectionSummary",collection_id);
let result = await fetch('http://127.0.0.1:5000//api/v1/upload_raw_text?collection='+collection_id, {
// content-type header should not be specified!
method: 'POST',
body: formData,
})
.then(response => response.json())
.then(success => {
console.log(success)
// Do something with the successful response
})
.catch(error => console.log(error)
);
return result
};
export const dbUpdateCollectionSummaryNLTK = async (collection_id) => {
let result = await fetch(
"http://127.0.0.1:5000/api/v1/summarize/nltk",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment