added ability to load pdf

This commit is contained in:
Jason Schleifer
2024-11-17 14:07:50 +13:00
parent 87fd5008b5
commit 0303067dbc
+6 -1
View File
@@ -30,12 +30,17 @@ export function setupTextLoaderModuleNodes(nodeType, nodeData, app) {
case "CsvLoader":
showWidget(input_source);
break;
case "PdfLoader":
input_source.value = "File Path";
showWidget(input_source);
showWidget(file_path);
showWidget(upload_button);
break;
}
}
input_source.callback = async() => {
hideWidget(this, file_path);
hideWidget(this, upload_button);
console.log(input_source.value);
if (input_source.value == "File Path") {
showWidget(file_path);
showWidget(upload_button);