This commit is contained in:
2026-01-10 00:59:25 +08:00
parent 9da3d14752
commit 92ef98ce9b
27 changed files with 31787 additions and 175 deletions

View File

@@ -0,0 +1,24 @@
import { app } from './common.ts';
import fs from 'node:fs';
import path from 'node:path';
const sentence = path.join(process.cwd(), 'data', 'sentence-01-optimized.json');
const data = JSON.parse(fs.readFileSync(sentence, 'utf-8'));
async function run() {
const sentences = data?.sentences || [];
console.log(`Importing ${sentences.length} sentences...`);
const res = await app.run({
path: 'image-creator',
// key: 'create-sentence-list',
key: 'fix-sentences',
payload: {
data: sentences
}
});
console.log('Import sentence result:', res);
}
await run();