Download index.html from carsten12/BodyScan: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/spaces/carsten12/BodyScan/resolve/main/index.html
- Command line
-
hf download hf://spaces/carsten12/BodyScan/index.html
-
curl -L -o index.html https://huggingface.co/spaces/carsten12/BodyScan/resolve/main/index.html
1.15 kB
| <!-- index.html --> | |
| <html> | |
| <head> | |
| <title>SMPL Measurement</title> | |
| <meta charset="UTF-8" /> | |
| </head> | |
| <body> | |
| <h1>SMPL Measurement App</h1> | |
| <form id="measure-form"> | |
| <label for="gender">Gender:</label> | |
| <select id="gender" name="gender"> | |
| <option value="female">Female</option> | |
| <option value="male">Male</option> | |
| </select><br><br> | |
| <!-- Additional inputs for shape or vertices --> | |
| <button type="button" onclick="submitMeasurement()">Measure</button> | |
| </form> | |
| <div id="results"></div> | |
| <script> | |
| async function submitMeasurement() { | |
| const gender = document.getElementById('gender').value; | |
| // Example payload: only gender (model will use default shape) | |
| const payload = { gender: gender, betas: [], measures: ['height','chest','waist'] }; | |
| const response = await fetch('/measure', { | |
| method: 'POST', | |
| headers: { 'Content-Type': 'application/json' }, | |
| body: JSON.stringify(payload) | |
| }); | |
| const data = await response.json(); | |
| document.getElementById('results').innerText = JSON.stringify(data, null, 2); | |
| } | |
| </script> | |
| </body> | |
| </html> | |