feat: import models

This commit is contained in:
Timothy J. Baek
2024-05-25 00:36:08 -07:00
parent ea69087697
commit fad07d2049
3 changed files with 7 additions and 6 deletions

View File

@@ -259,9 +259,11 @@
console.log(savedModels);
for (const model of savedModels) {
await addNewModel(localStorage.token, model).catch((error) => {
return null;
});
if (model?.info ?? false) {
await addNewModel(localStorage.token, model.info).catch((error) => {
return null;
});
}
}
await models.set(await getModels(localStorage.token));