contnue. seems like there is duplicate when scrolling down, make the functions work through open libraries. (Api error with status 400. URL: https://huggingface.co/api/spaces/treekoo/rigmaster-3000-bone-wizardry-unleashed/commit/main. Request ID: Root=1-68fc22fb-059bc35a1836691b0f22638e)
3625ad2 verified | <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>API | BoneWizardry 3000 Unleashed</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| </head> | |
| <body class="bg-gray-900 text-gray-200"> | |
| <custom-navbar></custom-navbar> | |
| <main class="container mx-auto px-4 py-8"> | |
| <div class="bg-gray-800/80 backdrop-blur-sm rounded-xl p-6 border border-gray-700 shadow-2xl"> | |
| <h1 class="text-4xl font-bold mb-6 text-indigo-300 flex items-center gap-3"> | |
| <i data-feather="cpu"></i> API Documentation | |
| </h1> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-8"> | |
| <div class="bg-gray-900/50 rounded-lg p-6 border border-gray-700"> | |
| <h2 class="text-2xl font-bold mb-4 text-indigo-200"> | |
| <i data-feather="upload" class="inline mr-2"></i> Upload Character | |
| </h2> | |
| <pre class="bg-gray-800 p-4 rounded-md text-sm overflow-x-auto"> | |
| POST /api/upload | |
| Content-Type: multipart/form-data | |
| { | |
| "image": "File", | |
| "name": "String", | |
| "type": "2d|3d-flat" | |
| }</pre> | |
| <p class="mt-4 text-gray-400">Upload a character image for rigging.</p> | |
| </div> | |
| <div class="bg-gray-900/50 rounded-lg p-6 border border-gray-700"> | |
| <h2 class="text-2xl font-bold mb-4 text-indigo-200"> | |
| <i data-feather="sliders" class="inline mr-2"></i> Process Rigging | |
| </h2> | |
| <pre class="bg-gray-800 p-4 rounded-md text-sm overflow-x-auto"> | |
| POST /api/rig | |
| Content-Type: application/json | |
| { | |
| "character_id": "UUID", | |
| "pivots": { | |
| "head": {x: number, y: number}, | |
| "arms": {x: number, y: number} | |
| }, | |
| "meshes": ["head", "arms", "body"] | |
| }</pre> | |
| <p class="mt-4 text-gray-400">Process character rigging with specified parameters.</p> | |
| </div> | |
| <div class="bg-gray-900/50 rounded-lg p-6 border border-gray-700"> | |
| <h2 class="text-2xl font-bold mb-4 text-indigo-200"> | |
| <i data-feather="activity" class="inline mr-2"></i> Animate Character | |
| </h2> | |
| <pre class="bg-gray-800 p-4 rounded-md text-sm overflow-x-auto"> | |
| POST /api/animate | |
| Content-Type: application/json | |
| { | |
| "character_id": "UUID", | |
| "animation": "idle|walk|run|jump|custom", | |
| "parameters": {} | |
| }</pre> | |
| <p class="mt-4 text-gray-400">Apply animations to your character.</p> | |
| </div> | |
| <div class="bg-gray-900/50 rounded-lg p-6 border border-gray-700"> | |
| <h2 class="text-2xl font-bold mb-4 text-indigo-200"> | |
| <i data-feather="download" class="inline mr-2"></i> Export Model | |
| </h2> | |
| <pre class="bg-gray-800 p-4 rounded-md text-sm overflow-x-auto"> | |
| GET /api/export | |
| { | |
| "character_id": "UUID", | |
| "format": "live2d|spine|png" | |
| }</pre> | |
| <p class="mt-4 text-gray-400">Export your rigged character in various formats.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> |