Skip to content

Commit

Permalink
fix: Hub fix for undefined model size
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro-v committed Dec 8, 2023
1 parent 28368ee commit 6fe901b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/utils/converter.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit 6fe901b

Please sign in to comment.