Spaces:
Running
Running
Update index.html
Browse files- index.html +35 -18
index.html
CHANGED
@@ -1,24 +1,41 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
<head>
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
|
|
18 |
</head>
|
19 |
<body>
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
</body>
|
24 |
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Black Forest Labs</title>
|
7 |
+
<style>
|
8 |
+
html, body {
|
9 |
+
margin: 0;
|
10 |
+
padding: 0;
|
11 |
+
width: 100%;
|
12 |
+
height: 100%;
|
13 |
+
}
|
14 |
+
iframe {
|
15 |
+
width: 100%;
|
16 |
+
height: 100vh;
|
17 |
+
border: none;
|
18 |
+
}
|
19 |
+
</style>
|
20 |
</head>
|
21 |
<body>
|
22 |
+
<iframe id="streamlit-frame"></iframe>
|
23 |
+
|
24 |
+
<script>
|
25 |
+
const urls = [
|
26 |
+
"https://share.streamlit.io/?embed=true",
|
27 |
+
"https://square-disk-5955.ploomberapp.io/?embed=true"
|
28 |
+
];
|
29 |
+
|
30 |
+
function loadBalancedUrl() {
|
31 |
+
const randomIndex = Math.floor(Math.random() * urls.length);
|
32 |
+
return urls[randomIndex];
|
33 |
+
}
|
34 |
+
|
35 |
+
window.onload = function() {
|
36 |
+
const iframe = document.getElementById('streamlit-frame');
|
37 |
+
iframe.src = loadBalancedUrl();
|
38 |
+
};
|
39 |
+
</script>
|
40 |
</body>
|
41 |
</html>
|