Create index.html
Browse files- index.html +36 -0
index.html
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>EE Server</title>
|
| 5 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 6 |
+
</head>
|
| 7 |
+
<body class="container mt-5">
|
| 8 |
+
<h1>Equivariant Encryption Server</h1>
|
| 9 |
+
<ul class="nav nav-tabs">
|
| 10 |
+
<li class="nav-item"><a class="nav-link" data-bs-toggle="tab" href="#server">Start Inference Server</a></li>
|
| 11 |
+
</ul>
|
| 12 |
+
|
| 13 |
+
<div class="tab-content mt-3">
|
| 14 |
+
|
| 15 |
+
<!-- Server Tab -->
|
| 16 |
+
<div class="tab-pane" id="server">
|
| 17 |
+
<form method="POST">
|
| 18 |
+
<input type="hidden" name="action" value="start_server">
|
| 19 |
+
<div class="mb-3"><label>EE Model from Hub</label><input class="form-control" name="ee_model_name" required></div>
|
| 20 |
+
<div class="mb-3"><label>HF Token</label><input type="password" class="form-control" name="hf_token" required></div>
|
| 21 |
+
<button class="btn btn-success">Load & Start Inference Server</button>
|
| 22 |
+
</form>
|
| 23 |
+
</div>
|
| 24 |
+
</div>
|
| 25 |
+
|
| 26 |
+
{% with messages = get_flashed_messages(with_categories=true) %}
|
| 27 |
+
{% if messages %}
|
| 28 |
+
{% for category, msg in messages %}
|
| 29 |
+
<div class="alert alert-{{ category }} mt-3">{{ msg }}</div>
|
| 30 |
+
{% endfor %}
|
| 31 |
+
{% endif %}
|
| 32 |
+
{% endwith %}
|
| 33 |
+
|
| 34 |
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
| 35 |
+
</body>
|
| 36 |
+
</html>
|