Spaces:
Sleeping
Sleeping
Update templates/prompt_template.html
Browse files
templates/prompt_template.html
CHANGED
@@ -525,7 +525,7 @@ async function fetchUpdatedDocuments(company_id) {
|
|
525 |
contentSection.style.display = 'block';
|
526 |
}
|
527 |
}
|
528 |
-
|
529 |
const form = document.getElementById('addPromptForm');
|
530 |
|
531 |
// Check if the form is valid
|
@@ -559,7 +559,7 @@ async function fetchUpdatedDocuments(company_id) {
|
|
559 |
if (!response.ok) {
|
560 |
throw new Error('Network response was not ok');
|
561 |
}
|
562 |
-
return response.
|
563 |
})
|
564 |
.then(data => {
|
565 |
const row_id = data.row_id;
|
|
|
525 |
contentSection.style.display = 'block';
|
526 |
}
|
527 |
}
|
528 |
+
function save_file() {
|
529 |
const form = document.getElementById('addPromptForm');
|
530 |
|
531 |
// Check if the form is valid
|
|
|
559 |
if (!response.ok) {
|
560 |
throw new Error('Network response was not ok');
|
561 |
}
|
562 |
+
return response.json();
|
563 |
})
|
564 |
.then(data => {
|
565 |
const row_id = data.row_id;
|