|
|
<!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> |
|
|
|
|
|
|
|
|
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"); |
|
|
} |
|
|
|
|
|
|
|
|
</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> |
|
|
|