Spaces:
Sleeping
Sleeping
Download src/utils.py from WeilJimmer/VoxSum: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/spaces/WeilJimmer/VoxSum/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/WeilJimmer/VoxSum/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/WeilJimmer/VoxSum/resolve/main/src/utils.py
656 Bytes
| # utils.py | |
| import opencc | |
| model_names = { | |
| "tiny English":"tiny", | |
| "tiny Arabic":"tiny-ar", | |
| "tiny Chinese":"tiny-zh", | |
| "tiny Japanese":"tiny-ja", | |
| "tiny Korean":"tiny-ko", | |
| "tiny Ukrainian":"tiny-uk", | |
| "tiny Vietnamese":"tiny-vi", | |
| "base English":"base", | |
| "base Spanish":"base-es" | |
| } | |
| available_gguf_llms = { | |
| "Gemma-3-1B": ("bartowski/google_gemma-3-1b-it-qat-GGUF", "google_gemma-3-1b-it-qat-Q4_0.gguf"), | |
| "Gemma-3-3N-E2B": ("unsloth/gemma-3n-E2B-it-GGUF", "gemma-3n-E2B-it-Q4_0.gguf"), | |
| "Gemma-3-3N-E4B": ("unsloth/gemma-3n-E4B-it-GGUF", "gemma-3n-E4B-it-Q4_0.gguf"), | |
| } | |
| s2tw_converter = opencc.OpenCC('s2twp') |