feat: able to configure ratio for more models now (close #53)

This commit is contained in:
JustSong committed 2023-05-11 20:59:35 +08:00
1 parent 929f87d11a
commit 049a6def02
6 files changed
+95 -74

No files matched your search

+10 -1
View File
@@ -152,4 +152,13 @@ export function downloadTextAsFile(text, filename) {
a.href = url;
a.download = filename;
a.click();
}
}
export const verifyJSON = (str) => {
try {
JSON.parse(str);
} catch (e) {
return false;
}
return true;
};