Commit
·
4e53ff3
1
Parent(s):
e987042
Upload index.html
Browse files- public/index.html +35 -0
public/index.html
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- public/index.html -->
|
2 |
+
<!DOCTYPE html>
|
3 |
+
<html lang="en">
|
4 |
+
|
5 |
+
<head>
|
6 |
+
<meta charset="UTF-8">
|
7 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8 |
+
<title>OPENAI Reverse Proxy</title>
|
9 |
+
<!-- Link tới tệp CSS của Bootstrap -->
|
10 |
+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
|
11 |
+
<!-- Add the function getExternalUrl(spaceId) here -->
|
12 |
+
<script>
|
13 |
+
function getExternalUrl(spaceId) {
|
14 |
+
try {
|
15 |
+
const [username, spacename] = spaceId.split("/");
|
16 |
+
return `https://${username}-${spacename.replace(/_/g, "-")}.hf.space/api/v1`;
|
17 |
+
} catch (e) {
|
18 |
+
return "";
|
19 |
+
}
|
20 |
+
}
|
21 |
+
</script>
|
22 |
+
</head>
|
23 |
+
|
24 |
+
<body>
|
25 |
+
<div class="container">
|
26 |
+
<h1 class="text-center">Welcome to OPENAI Reverse Proxy</h1>
|
27 |
+
<p class="lead">This is your OpenAI Reverse Proxy URL:</p>
|
28 |
+
</div>
|
29 |
+
<!-- Link tới tệp JavaScript của Bootstrap -->
|
30 |
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
|
31 |
+
<!-- Link to the JavaScript file that contains the Node.js code -->
|
32 |
+
<script src="server.js"></script>
|
33 |
+
</body>
|
34 |
+
|
35 |
+
</html>
|