ReLP-Client / text_generation.html
ehristoforu's picture
Upload folder using huggingface_hub
e1a87c1 verified
<!-- 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 - Text Generation</title>
</head>
<body class="dark-theme">
<header>
<a href="index.html"><img src="assets/icons/text_gen.png" alt="AI Icon" class="icon"></a>
<h1>ReLP - Text Generation</h1>
</header>
<nav>
<ul class="tabs">
<li><a href="#" onclick="showTab('LLaMA', 'https://huggingface-projects-llama-2-13b-chat.hf.space', this)">LLaMA</a></li>
<li><a href="#" onclick="showTab('Mixtral', 'https://ehristoforu-mixtral-46-7b-chat.hf.space', this)">Mixtral</a></li>
<li><a href="#" onclick="showTab('Mistral', 'https://ehristoforu-mistral-7b-chat.hf.space', this)">Mistral</a></li>
<li><a href="#" onclick="showTab('Saiga', 'https://ehristoforu-saiga-13b-chat-gpu.hf.space', this)">Saiga</a></li>
<li><a href="#" onclick="showTab('GPT-2.0', 'https://docs-demos-gpt2.hf.space', this)">GPT-2.0 (Coming soon)</a></li>
</ul>
</nav>
<main>
<iframe id="iframeLLaMA" src="https://huggingface-projects-llama-2-13b-chat.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)"></iframe>
<iframe id="iframeMixtral" src="https://ehristoforu-mixtral-46-7b-chat.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe>
<iframe id="iframeMistral" src="https://ehristoforu-mistral-7b-chat.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe>
<iframe id="iframeSaiga" src="https://ehristoforu-saiga-13b-chat-gpu.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe>
<iframe id="iframeGPT" src="https://docs-demos-gpt2.hf.space" 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>