fix: Hub fix for undefined model size

This commit is contained in:
hiro 2023-12-05 17:44:51 +07:00
parent 28368ee03b
commit 6fe901b83c

View File

@ -1,4 +1,5 @@
export const toGigabytes = (input: number) => {
if (!input) return ''
if (input > 1024 ** 3) {
return (input / 1000 ** 3).toFixed(2) + 'GB'
} else if (input > 1024 ** 2) {