feat: able to configure ratio for more models now (close #53)
This commit is contained in:
1 parent
929f87d11a
commit
049a6def02
6 files changed
+95
-74
No files matched your search
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user