| {% if base_exists %} | |
| {% extends 'base.html' %} | |
| {% block title %}About this demo app{% endblock %} | |
| {% else %} | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/css/bootstrap.min.css" integrity="sha384-aFq/bzH65dt+w6FI2ooMVUpc+21e0SRygnTpmBvdBgSdnuTN7QbdgL+OapgHtvPp" crossorigin="anonymous"> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css"> | |
| <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/js/bootstrap.bundle.min.js" integrity="sha384-qKXV1j0HvMUeCBQ+QVp7JcfGl760yU08IQ+GpUo5hlbpg51QRiuqHAJz8+BrxE/N" crossorigin="anonymous"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> | |
| </head> | |
| {% endif %} | |
| {% block body %} | |
| <style> | |
| h2 { | |
| color: #2c3e50; | |
| border-bottom: 3px solid #3498db; | |
| padding-bottom: 0.5rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| p { | |
| margin-bottom: 1rem; | |
| color: #555; | |
| } | |
| strong { | |
| color: #2980b9; | |
| } | |
| code { | |
| background: #f1f2f6; | |
| padding: 0.2rem 0.4rem; | |
| border-radius: 4px; | |
| font-family: 'Consolas', 'Monaco', monospace; | |
| color: #e74c3c; | |
| font-size: 0.9em; | |
| } | |
| pre { | |
| background: #2c3e50; | |
| color: #ecf0f1; | |
| padding: 1.5rem; | |
| border-radius: 8px; | |
| overflow-x: auto; | |
| margin: 1rem 0; | |
| border-left: 4px solid #3498db; | |
| } | |
| pre code { | |
| background: none; | |
| color: #ecf0f1; | |
| padding: 0; | |
| border-radius: 0; | |
| font-size: 0.9rem; | |
| } | |
| .highlight { | |
| background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%); | |
| padding: 0.1rem 0.3rem; | |
| border-radius: 3px; | |
| } | |
| </style> | |
| <div class="container mt-4"> | |
| <h2>IvoryOS Demo</h2> | |
| <p> | |
| <strong>IvoryOS</strong> dynamically inspects functions from any Python script, rendering them as draggable method cards in the browser. | |
| </p> | |
| <p> | |
| The source code below is the source script used to build this demo. | |
| Three instances "pump", "balance" and "sdl" are created in this script, and can be either called in <strong>Device</strong> tab, or used to build a workflow in <strong>Design</strong> tab. | |
| </p> | |
| <p> | |
| For authentication, user passwords are securely hashed using <code>bcrypt</code> before being stored. | |
| Use this demo to explore IvoryOS features! | |
| </p> | |
| <div id="progress-warning" style="border: 1px solid #f5c2c7; background-color: #f8d7da; color: #842029; padding: 1rem; border-radius: 0.5rem; margin: 1rem 0; font-size: 0.95rem;"> | |
| ⚠️ <strong>Note:</strong> Real-time progress tracking via <code>SocketIO</code> is currently <strong>not working</strong> on Hugging Face Spaces. | |
| <br> | |
| This is due to limited WebSocket support in the Hugging Face hosting environment. | |
| <br> | |
| Workflow will still work, results can be tracked via the <strong>Data</strong> tab. | |
| <br> | |
| </div> | |
| <h2>Source Code</h2> | |
| <pre><code class="language-python">{{ code|e }}</code></pre> | |
| </div> | |
| {% endblock %} | |