Spaces:
Runtime error
Runtime error
Create index.html
Browse files- index.html +35 -0
index.html
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>Gangsta GPT</title>
|
| 6 |
+
<style>
|
| 7 |
+
body {
|
| 8 |
+
margin: 0;
|
| 9 |
+
}
|
| 10 |
+
iframe {
|
| 11 |
+
width: 100%;
|
| 12 |
+
height: 100vh;
|
| 13 |
+
border: none;
|
| 14 |
+
}
|
| 15 |
+
</style>
|
| 16 |
+
</head>
|
| 17 |
+
<body>
|
| 18 |
+
<iframe
|
| 19 |
+
src="https://alexandrorocha-vibe-image-generator.hf.space"
|
| 20 |
+
id="chatbot">
|
| 21 |
+
</iframe>
|
| 22 |
+
|
| 23 |
+
<script>
|
| 24 |
+
// Hide Hugging Face footer (only works if Space allows embedding)
|
| 25 |
+
document.getElementById('chatbot').onload = function() {
|
| 26 |
+
const iframeDoc = this.contentDocument || this.contentWindow.document;
|
| 27 |
+
const style = iframeDoc.createElement('style');
|
| 28 |
+
style.innerHTML = `
|
| 29 |
+
footer, .footer { display: none !important; }
|
| 30 |
+
`;
|
| 31 |
+
iframeDoc.head.appendChild(style);
|
| 32 |
+
};
|
| 33 |
+
</script>
|
| 34 |
+
</body>
|
| 35 |
+
</html>
|