Download src/utils/convertModeObjectToArray.ts from nolual/majic: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/nolual/majic/resolve/main/src/utils/convertModeObjectToArray.ts
- Command line
-
hf download hf://nolual/majic/src/utils/convertModeObjectToArray.ts
-
curl -L -o convertModeObjectToArray.ts https://huggingface.co/nolual/majic/resolve/main/src/utils/convertModeObjectToArray.ts
284 Bytes
| export function convertModeObjectToArray(mode: { | |
| soft_mode: number; | |
| vehicle: number; | |
| }) { | |
| const softModePercentage = (mode.soft_mode * 100).toFixed(2) + "%"; | |
| const vehiclePercentage = (mode.vehicle * 100).toFixed(2) + "%"; | |
| return [softModePercentage, vehiclePercentage]; | |
| } | |