Spaces:
Sleeping
Sleeping
Create templates/index.html
Browse files- templates/index.html +47 -0
templates/index.html
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>OpenRouter AI Hub</title>
|
| 7 |
+
<link rel="stylesheet" href="/static/style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="container">
|
| 11 |
+
<header>
|
| 12 |
+
<h1>OpenRouter AI Hub</h1>
|
| 13 |
+
<p>Access multiple AI models through a single interface</p>
|
| 14 |
+
</header>
|
| 15 |
+
|
| 16 |
+
<main>
|
| 17 |
+
<section class="features">
|
| 18 |
+
<h2>Features</h2>
|
| 19 |
+
<ul>
|
| 20 |
+
<li>Chat with multiple AI models (GPT-3.5, Claude, LLaMA, etc.)</li>
|
| 21 |
+
<li>Smart model selection based on your query</li>
|
| 22 |
+
<li>Simple API endpoints for integration</li>
|
| 23 |
+
<li>Completely free to use</li>
|
| 24 |
+
</ul>
|
| 25 |
+
</section>
|
| 26 |
+
|
| 27 |
+
<section class="try-it">
|
| 28 |
+
<h2>Try It Out</h2>
|
| 29 |
+
<p>Visit the <a href="/">chat interface</a> or use our API:</p>
|
| 30 |
+
<div class="code-block">
|
| 31 |
+
<pre><code>POST /api/v1/chat
|
| 32 |
+
Content-Type: application/json
|
| 33 |
+
|
| 34 |
+
{
|
| 35 |
+
"message": "Explain quantum computing",
|
| 36 |
+
"model": "openai/gpt-3.5-turbo"
|
| 37 |
+
}</code></pre>
|
| 38 |
+
</div>
|
| 39 |
+
</section>
|
| 40 |
+
</main>
|
| 41 |
+
|
| 42 |
+
<footer>
|
| 43 |
+
<p>Powered by OpenRouter and Hugging Face Spaces</p>
|
| 44 |
+
</footer>
|
| 45 |
+
</div>
|
| 46 |
+
</body>
|
| 47 |
+
</html>
|