File size: 2,880 Bytes
e1a87c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!-- text_generation.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style/tabs/style.css">
    <link type="image/x-icon" href="assets/favicon/favicon.png" rel="shortcut icon">
    <link type="Image/x-icon" href="assets/favicon/favicon.png" rel="icon">
    <title>ReLP - Transcribe</title>
</head>
<body class="dark-theme">
    <header>
        <a href="index.html"><img src="assets/icons/whisper.png" alt="AI Icon" class="icon"></a>
        <h1>ReLP - Transcribe</h1>
    </header>
    <nav>
        <ul class="tabs">
            <li><a href="#" onclick="showTab('OpenAI-Whisper', 'https://openai-whisper.hf.space', this)">OpenAI Whisper</a></li>
            <li><a href="#" onclick="showTab('Whisper-JAX', 'https://sanchit-gandhi-whisper-jax.hf.space', this)">Whisper JAX</a></li>
            <li><a href="#" onclick="showTab('Whisper-Xenova', 'https://xenova-whisper-web.static.hf.space', this)">Whisper Xenova</a></li>
            <li><a href="#" onclick="showTab('Fast-Whisper-WebUI', 'https://aadnk-faster-whisper-webui.hf.space', this)">Fast Whisper Webui</a></li>
            <li><a href="#" onclick="showTab('Distil-Whisper', 'https://xenova-distil-whisper-web.static.hf.space', this)">Distil Whisper (Coming soon)</a></li>
        </ul>
    </nav>
    <main>
        <iframe id="iframeOpenAI-Whisper" src="https://openai-whisper.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)"></iframe>
        <iframe id="iframeWhisper-JAX" src="https://sanchit-gandhi-whisper-jax.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe>
        <iframe id="iframeWhisper-Xenova" src="https://xenova-whisper-web.static.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe>
        <iframe id="iframeFast-Whisper-WebUI" src="https://aadnk-faster-whisper-webui.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe>
        <iframe id="iframeDistil-Whisper" src="" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe>
    </main>
    <script>
        function showTab(tabName, url, tab) {
            const iframes = document.querySelectorAll('iframe');
            iframes.forEach(iframe => iframe.style.display = 'none');

            const currentIframe = document.getElementById(`iframe${tabName}`);
            currentIframe.style.display = 'block';

            setActiveTab(tab);
        }

        function setActiveTab(activeTab) {
            const tabs = document.querySelectorAll('.tabs a');
            tabs.forEach(tab => tab.classList.remove('active'));
            activeTab.classList.add('active');
        }
    </script>
</body>
</html>