Spaces:
Runtime error
Runtime error
File size: 756 Bytes
ceb943f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import Replicate from 'replicate';
const replicate = new Replicate({
auth: process.env.REPLICATE_API_KEY,
});
async function checkModel(owner, name) {
try {
const model = await replicate.models.get(owner, name);
console.log(`✅ Model found: ${owner}/${name}`);
console.log(`Latest version: ${model.latest_version?.id}`);
return true;
} catch (e) {
console.log(`❌ Model not found: ${owner}/${name} (${e.message})`);
return false;
}
}
async function main() {
await checkModel('adirik', 'grounding-dino');
await checkModel('joehoover', 'grounding-dino');
await checkModel('andreasjansson', 'grounding-dino');
await checkModel('idea-research', 'grounding-dino');
}
main();
|