So, I have done countless reading online about Git LFS and how it works and still have been unable to find a conclusive solution for my problem. Basically, I am using Mozilla Deepspeech and I am trying to upload my project to Heroku via Github. However, since the Deepspeech files are so big, they must be uploaded with Git LFS. Which is fine, except now when I access the file path, I receive the pointer to the file with the SHA256 ID and not the actual binary. I am wondering if there is just no way to solve this or if it is possible to receive the actual file contents. Thanks for the help. Code is below (This is the correct path btw)
const DeepSpeech = require('deepspeech')
let modelPath = './deepspeech/deepspeech-0.9.3-models.pbmm'
let scorerPath = './deepspeech/deepspeech-0.9.3-models.scorer'
let model = new DeepSpeech.Model(modelPath)
model.enableExternalScorer(scorerPath)
Data loss: Corrupted memmapped model file: ./deepspeech/deepspeech-0.9.3-models.pbmm Invalid directory offset
throw `CreateModel failed: ${binding.ErrorCodeToErrorMessage(status)} (0x${status.toString(16)})`;
CreateModel failed: Failed to initialize memory mapped model. (0x3000)