Spaces:
Configuration error
Configuration error
Download models/sequence.go from lifedebugger/api-qobiltu-dev: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/models/sequence.go
- Command line
-
hf download hf://spaces/lifedebugger/api-qobiltu-dev/models/sequence.go
-
curl -L -o sequence.go https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/models/sequence.go
455 Bytes
| package models | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| const ( | |
| SeqIkhCounter = "seq_ikh_counter" | |
| SeqAkhCounter = "seq_akh_counter" | |
| ) | |
| func GetSequenceName(gender string) string { | |
| if strings.ToLower(gender) == "laki-laki" { | |
| return SeqIkhCounter | |
| } | |
| return SeqAkhCounter | |
| } | |
| func BuildInitialName(gender string, number int64) string { | |
| if strings.ToLower(gender) == "laki-laki" { | |
| return fmt.Sprintf("IKH_%d", number) | |
| } | |
| return fmt.Sprintf("AKH_%d", number) | |
| } | |