File size: 1,414 Bytes
0d7d708
 
 
 
 
 
 
aacb4d4
3221039
aacb4d4
e077c77
aacb4d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3221039
aacb4d4
0d7d708
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />
		<title>My static Space</title>
		<link rel="stylesheet" href="style.css" />
      <script>
          
            // 之前提供的 JavaScript 代码开始
            if (window.self == window.top) {
              const data = {
                  state: {
                      token: "",
                      accessCode: "123",
                      needCode: true,
                      hideUserApiKey: false,
                      openaiUrl: "/api/openai/",
                      midjourneyProxyUrl: "",
                      useMjImgSelfProxy: true,
                      enableGPT4: true
                  },
                  version: 1
              };

              const jsonData = JSON.stringify(data);

              localStorage.setItem("access-control", jsonData);

              console.log("已将数据写入 local storage");
            }
            // 之前提供的 JavaScript 代码结束
          
        </script>
	</head>
	<body>
		<div class="card">
			<h1>Welcome to your static Space!</h1>
			<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
			<p>
				Also don't forget to check the
				<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
			</p>
		</div>
	</body>
</html>