File size: 3,615 Bytes
6f2393d
 
6c5d588
6f2393d
 
 
 
 
 
 
 
 
 
 
 
 
 
6c5d588
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f2393d
6c5d588
 
 
 
 
 
 
 
 
 
 
 
 
68e6de8
 
 
 
 
 
 
 
6f2393d
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{% 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 %}