huntrezz commited on
Commit
4c44b59
·
verified ·
1 Parent(s): 4d17f10

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +32 -18
index.html CHANGED
@@ -1,19 +1,33 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </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>Real-Time Monocular Depth Estimation</title>
7
+ <style>
8
+ body { margin: 0; }
9
+ canvas { display: block; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <canvas id="depthCanvas"></canvas>
14
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
15
+ <script>
16
+ // Your WebGL and Three.js code will go here
17
+ // Initialize scene, camera, renderer
18
+ const scene = new THREE.Scene();
19
+ const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
20
+ const renderer = new THREE.WebGLRenderer({canvas: document.getElementById('depthCanvas')});
21
+ renderer.setSize(window.innerWidth, window.innerHeight);
22
+
23
+ // Add point cloud or other 3D elements here
24
+
25
+ function animate() {
26
+ requestAnimationFrame(animate);
27
+ // Update your 3D scene here
28
+ renderer.render(scene, camera);
29
+ }
30
+ animate();
31
+ </script>
32
+ </body>
33
  </html>