Spaces:
Running
Running
Update index.html
Browse files- index.html +40 -102
index.html
CHANGED
@@ -1,75 +1,14 @@
|
|
1 |
-
|
2 |
-
<
|
3 |
-
<
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
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 |
-
<
|
64 |
-
|
65 |
-
|
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"
|
@@ -80,40 +19,39 @@
|
|
80 |
onload="handleIframeLoad()"
|
81 |
onerror="handleIframeError()"
|
82 |
></iframe>
|
83 |
-
</
|
|
|
84 |
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
</body>
|
119 |
-
</html>
|
|
|
1 |
+
<main class="flex flex-1 flex-col">
|
2 |
+
<section class="spinner-overlay" id="mainSpinner">
|
3 |
+
<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">
|
4 |
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
5 |
+
<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>
|
6 |
+
</svg>
|
7 |
+
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
+
<aside class="error-message" id="errorMessage">Failed to load application</aside>
|
10 |
+
|
11 |
+
<article class="space-iframe-container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<iframe
|
13 |
src="https://qwen-qwen2-5-coder-demo.hf.space/?__theme=system"
|
14 |
aria-label="Space app"
|
|
|
19 |
onload="handleIframeLoad()"
|
20 |
onerror="handleIframeError()"
|
21 |
></iframe>
|
22 |
+
</article>
|
23 |
+
</main>
|
24 |
|
25 |
+
<script>
|
26 |
+
document.querySelectorAll('.SVELTE_HYDRATER').forEach(node => {
|
27 |
+
const target = node.getAttribute('data-target');
|
28 |
+
const props = JSON.parse(node.getAttribute('data-props') || '{}');
|
29 |
+
console.log(`Initializing ${target} with props:`, props);
|
30 |
+
// Actual Svelte component registration would go here
|
31 |
+
});
|
32 |
|
33 |
+
function handleIframeLoad() {
|
34 |
+
document.getElementById('mainSpinner').style.display = 'none';
|
35 |
+
}
|
36 |
|
37 |
+
function handleIframeError() {
|
38 |
+
document.getElementById('mainSpinner').style.display = 'none';
|
39 |
+
document.getElementById('errorMessage').style.display = 'block';
|
40 |
+
}
|
41 |
|
42 |
+
// Initial spinner visibility
|
43 |
+
document.getElementById('mainSpinner').style.display = 'flex';
|
44 |
+
</script>
|
45 |
|
46 |
+
<script>
|
47 |
+
import("/front/build/kube-e5d4d76/index.js");
|
48 |
+
window.moonSha = "kube-e5d4d76/";
|
49 |
+
window.__hf_deferred = {};
|
50 |
|
51 |
+
if (["hf.co", "huggingface.co"].includes(window.location.hostname)) {
|
52 |
+
const script = document.createElement("script");
|
53 |
+
script.src = "https://js.stripe.com/v3/";
|
54 |
+
script.async = true;
|
55 |
+
document.head.appendChild(script);
|
56 |
+
}
|
57 |
+
</script>
|
|
|
|