Spaces:
Running
Running
Update index.html
Browse files- index.html +92 -117
index.html
CHANGED
@@ -1,144 +1,119 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
-
<html
|
3 |
<head>
|
4 |
-
<meta charset="
|
5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"
|
6 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
<style>
|
8 |
-
body {
|
9 |
-
background-color: #0a0a0a;
|
10 |
-
color: #00ff00;
|
11 |
-
font-family: 'Courier New', monospace;
|
12 |
-
margin: 0;
|
13 |
-
padding: 20px;
|
14 |
-
overflow-x: hidden;
|
15 |
-
text-align: center;
|
16 |
-
}
|
17 |
-
.glitch {
|
18 |
-
animation: glitch 1s infinite;
|
19 |
-
text-shadow: 2px 2px #ff00ff;
|
20 |
-
}
|
21 |
-
.console {
|
22 |
-
border: 3px solid #00ff00;
|
23 |
-
padding: 20px;
|
24 |
-
margin: 20px auto;
|
25 |
-
max-width: 800px;
|
26 |
-
border-radius: 5px;
|
27 |
-
box-shadow: 0 0 15px #00ff0080;
|
28 |
-
}
|
29 |
-
input, select, button {
|
30 |
-
background: #000;
|
31 |
-
border: 2px solid #00ff00;
|
32 |
-
color: #00ff00;
|
33 |
-
padding: 10px;
|
34 |
-
margin: 10px;
|
35 |
-
font-size: 16px;
|
36 |
-
text-transform: uppercase;
|
37 |
-
}
|
38 |
-
input {
|
39 |
-
width: 70%;
|
40 |
-
}
|
41 |
-
input:focus, button:hover, select:focus {
|
42 |
-
outline: none;
|
43 |
-
box-shadow: 0 0 10px #00ff00;
|
44 |
-
}
|
45 |
-
button {
|
46 |
-
cursor: pointer;
|
47 |
-
transition: all 0.3s;
|
48 |
-
}
|
49 |
-
button:hover {
|
50 |
-
background: #00ff00;
|
51 |
-
color: #000;
|
52 |
-
}
|
53 |
-
.scan-line {
|
54 |
-
position: fixed;
|
55 |
-
width: 100%;
|
56 |
-
height: 2px;
|
57 |
-
background: linear-gradient(to bottom, transparent 0%, #00ff0080 50%, transparent 100%);
|
58 |
-
animation: scan 4s linear infinite;
|
59 |
-
pointer-events: none;
|
60 |
-
}
|
61 |
-
@keyframes scan {
|
62 |
-
0% { top: 0; }
|
63 |
-
100% { top: 100%; }
|
64 |
-
}
|
65 |
.spinner-overlay {
|
|
|
66 |
position: fixed;
|
67 |
top: 0;
|
68 |
left: 0;
|
69 |
width: 100%;
|
70 |
height: 100%;
|
71 |
-
background
|
72 |
-
color: white;
|
73 |
-
display: flex;
|
74 |
-
justify-content: center;
|
75 |
-
align-items: center;
|
76 |
z-index: 1000;
|
77 |
-
|
78 |
-
pointer-events: none;
|
79 |
-
transition: opacity 0.3s ease;
|
80 |
-
}
|
81 |
-
.spinner-overlay.visible {
|
82 |
-
opacity: 1;
|
83 |
-
pointer-events: auto;
|
84 |
}
|
85 |
.space-iframe {
|
|
|
86 |
width: 100%;
|
87 |
height: 100vh;
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
}
|
90 |
</style>
|
91 |
</head>
|
92 |
-
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
<select id="searchEngine">
|
100 |
-
<option value="google">Google</option>
|
101 |
-
<option value="yandex">Yandex</option>
|
102 |
-
<option value="duckduckgo">DuckDuckGo</option>
|
103 |
-
</select>
|
104 |
-
</div>
|
105 |
|
106 |
-
|
107 |
-
|
108 |
-
|
|
|
109 |
|
110 |
-
|
|
|
|
|
111 |
|
112 |
<script>
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
let url;
|
117 |
-
|
118 |
-
if (!query) return alert("Введите поисковый запрос!");
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
url = `https://yandex.ru/search/?text=${encodeURIComponent(query)}`;
|
126 |
-
break;
|
127 |
-
case "duckduckgo":
|
128 |
-
url = `https://duckduckgo.com/?q=${encodeURIComponent(query)}`;
|
129 |
-
break;
|
130 |
-
default:
|
131 |
-
return;
|
132 |
-
}
|
133 |
-
|
134 |
-
document.getElementById("loadingSpinner").classList.add("visible");
|
135 |
-
|
136 |
-
setTimeout(() => {
|
137 |
-
document.getElementById("searchFrame").src = url;
|
138 |
-
document.getElementById("loadingSpinner").classList.remove("visible");
|
139 |
-
}, 1500);
|
140 |
}
|
141 |
</script>
|
142 |
-
|
143 |
</body>
|
144 |
-
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
+
<html class="">
|
3 |
<head>
|
4 |
+
<meta charset="utf-8" />
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
|
6 |
+
<meta name="description" content="Discover amazing ML apps made by the community" />
|
7 |
+
<meta property="fb:app_id" content="1321688464574422" />
|
8 |
+
<meta name="twitter:card" content="summary_large_image" />
|
9 |
+
<meta name="twitter:site" content="@huggingface" />
|
10 |
+
<meta name="twitter:image" content="https://cdn-thumbnails.huggingface.co/social-thumbnails/spaces/Qwen/Qwen2.5-Coder-demo.png" />
|
11 |
+
<meta property="og:title" content="Qwen2.5 Coder Demo - a Hugging Face Space by Qwen" />
|
12 |
+
<meta property="og:type" content="website" />
|
13 |
+
<meta property="og:url" content="https://huggingface.co/spaces/Qwen/Qwen2.5-Coder-demo" />
|
14 |
+
<meta property="og:image" content="https://cdn-thumbnails.huggingface.co/social-thumbnails/spaces/Qwen/Qwen2.5-Coder-demo.png" />
|
15 |
+
<link rel="stylesheet" href="/front/build/kube-e5d4d76/style.css" />
|
16 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
17 |
+
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap" rel="stylesheet" />
|
18 |
+
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&display=swap" rel="stylesheet" />
|
19 |
+
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'" />
|
20 |
+
<noscript>
|
21 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.css" />
|
22 |
+
</noscript>
|
23 |
+
<script>if (window.matchMedia('(prefers-color-scheme: dark)').matches) { document.documentElement.classList.add('dark'); }</script>
|
24 |
+
<link rel="canonical" href="https://huggingface.co/spaces/Qwen/Qwen2.5-Coder-demo">
|
25 |
+
<title>Qwen2.5 Coder Demo - a Hugging Face Space by Qwen</title>
|
26 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
.spinner-overlay {
|
28 |
+
display: flex;
|
29 |
position: fixed;
|
30 |
top: 0;
|
31 |
left: 0;
|
32 |
width: 100%;
|
33 |
height: 100%;
|
34 |
+
background: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
|
|
|
35 |
z-index: 1000;
|
36 |
+
transition: opacity 0.3s;
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
.space-iframe {
|
39 |
+
border: none;
|
40 |
width: 100%;
|
41 |
height: 100vh;
|
42 |
+
min-height: 500px;
|
43 |
+
}
|
44 |
+
.error-message {
|
45 |
+
color: red;
|
46 |
+
display: none;
|
47 |
+
position: fixed;
|
48 |
+
top: 20px;
|
49 |
+
right: 20px;
|
50 |
+
z-index: 1001;
|
51 |
+
background: white;
|
52 |
+
padding: 10px;
|
53 |
+
border: 1px solid #ffdddd;
|
54 |
+
border-radius: 4px;
|
55 |
}
|
56 |
</style>
|
57 |
</head>
|
58 |
+
<body class="flex flex-col min-h-dvh bg-white dark:bg-gray-950 text-black SpacePage">
|
59 |
+
<header class="from-gray-50-to-white bg-linear-to-t relative z-40 border-b border-gray-100 via-white pt-0.5 dark:via-gray-950">
|
60 |
+
<!-- Existing header content -->
|
61 |
+
</header>
|
62 |
+
|
63 |
+
<main class="flex flex-1 flex-col">
|
64 |
+
<div class="spinner-overlay" id="mainSpinner">
|
65 |
+
<svg class="animate-spin h-5 w-5 text-gray-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
66 |
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
67 |
+
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
68 |
+
</svg>
|
69 |
+
</div>
|
70 |
+
|
71 |
+
<div class="error-message" id="errorMessage">Failed to load application</div>
|
72 |
+
|
73 |
+
<iframe
|
74 |
+
src="https://qwen-qwen2-5-coder-demo.hf.space/?__theme=system"
|
75 |
+
aria-label="Space app"
|
76 |
+
class="space-iframe outline-hidden grow overflow-hidden bg-white p-0"
|
77 |
+
allow="accelerometer; ambient-light-sensor; autoplay; battery; camera; clipboard-read; clipboard-write; display-capture; document-domain; encrypted-media; fullscreen; geolocation; gyroscope; layout-animations; legacy-image-formats; magnetometer; microphone; midi; oversized-images; payment; picture-in-picture; publickey-credentials-get; sync-xhr; usb; vr ; wake-lock; xr-spatial-tracking"
|
78 |
+
sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-storage-access-by-user-activation"
|
79 |
+
scrolling="no"
|
80 |
+
onload="handleIframeLoad()"
|
81 |
+
onerror="handleIframeError()"
|
82 |
+
></iframe>
|
83 |
+
</main>
|
84 |
|
85 |
+
<script>
|
86 |
+
document.querySelectorAll('.SVELTE_HYDRATER').forEach(node => {
|
87 |
+
const target = node.getAttribute('data-target');
|
88 |
+
const props = JSON.parse(node.getAttribute('data-props') || '{}');
|
89 |
+
console.log(`Initializing ${target} with props:`, props);
|
90 |
+
// Actual Svelte component registration would go here
|
91 |
+
});
|
92 |
|
93 |
+
function handleIframeLoad() {
|
94 |
+
document.getElementById('mainSpinner').style.display = 'none';
|
95 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
+
function handleIframeError() {
|
98 |
+
document.getElementById('mainSpinner').style.display = 'none';
|
99 |
+
document.getElementById('errorMessage').style.display = 'block';
|
100 |
+
}
|
101 |
|
102 |
+
// Initial spinner visibility
|
103 |
+
document.getElementById('mainSpinner').style.display = 'flex';
|
104 |
+
</script>
|
105 |
|
106 |
<script>
|
107 |
+
import("/front/build/kube-e5d4d76/index.js");
|
108 |
+
window.moonSha = "kube-e5d4d76/";
|
109 |
+
window.__hf_deferred = {};
|
|
|
|
|
|
|
110 |
|
111 |
+
if (["hf.co", "huggingface.co"].includes(window.location.hostname)) {
|
112 |
+
const script = document.createElement("script");
|
113 |
+
script.src = "https://js.stripe.com/v3/";
|
114 |
+
script.async = true;
|
115 |
+
document.head.appendChild(script);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
</script>
|
|
|
118 |
</body>
|
119 |
+
</html>
|