yasai-api-light / fix_requirements.js
tabito12345678910
Fix age range handling and model architecture
eb9bda6
raw
history blame contribute delete
403 Bytes
const fs = require('fs');
// Read the file
let content = fs.readFileSync('requirements.txt', 'utf8');
// Update rtdl to use a specific version that's compatible with Hugging Face
content = content.replace(
'rtdl ',
'rtdl>=0.0.1rc0,<0.1.0'
);
// Write the updated content back
fs.writeFileSync('requirements.txt', content);
console.log('Successfully updated requirements.txt with rtdl version');