Abin Thomas
Abin Thomas
``` InferenceOutputError: Invalid inference output: Expected Array. Use the 'request' method with the same parameters to do a custom call with no type checking. at textGeneration (file:///C:/Users/thomaa19/Desktop/ML/JavaScript/Mark4/node_modules/@huggingface/inference/dist/index.js:708:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)...
check the directory of the langchain model in here at [langchain.js](https://v01.api.js.langchain.com/index.html). Usually the extension is from the community section of their API. so `npm install @lanchain/community` then in the import,...
Make sure you are targeting the right value in the HTML/react code. If you are using React, the `onChange` property should set the state variable to `setVariableFunction(e.target.files[0])`