File size: 1,735 Bytes
7cc61e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

def make_clickable_model(model_name):
    model_name_list = model_name.split("/")
    if model_name_list[0] == "trt-llm":
        link = "https://github.com/NVIDIA/TensorRT-LLM/tree/main/examples/whisper"
    elif model_name_list[0] == "faster-whisper":
        link = "https://github.com/guillaumekln/faster-whisper"
    elif model_name_list[0] == "Whisper.cpp":
        link = "https://github.com/ggerganov/whisper.cpp"
    elif model_name_list[0] == "WhisperKit":
        link = "https://github.com/argmaxinc/WhisperKit"
    elif model_name_list[0] == "WhisperMLX":
        link = "https://huggingface.co/collections/mlx-community/whisper-663256f9964fbb1177db93dc"
    elif model_name_list[0] == "elevenlabs":
        link = "https://elevenlabs.io/speech-to-text"
    elif model_name_list[0] == "openai" and (model_name_list[1] == "whisper-1" or model_name_list[1] == "gpt-4o-transcribe" or model_name_list[1] == "gpt-4o-mini-transcribe"):
        link = "https://platform.openai.com/docs/guides/speech-to-text"
    elif model_name_list[0] == "assemblyai":
        link = "https://www.assemblyai.com/docs"
    elif model_name_list[0] == "revai":
        link = "https://docs.rev.ai/api/asynchronous/get-started/"
    elif model_name_list[0] == "speechmatics":
        link = "https://www.speechmatics.com/"
    elif model_name_list[0] == "ultravox":
        link = "https://huggingface.co/fixie-ai"
    elif model_name_list[0] == "aquavoice":
        link = "https://aquavoice.com/blog/introducing-avalon"
    else:
        link = f"https://huggingface.co/{model_name}"
    return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'