Spaces:
Paused
Paused
Delete templates
Browse files- templates/login.html +0 -20
- templates/manage.html +0 -33
templates/login.html
DELETED
|
@@ -1,20 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
<head>
|
| 5 |
-
<title>Login</title>
|
| 6 |
-
</head>
|
| 7 |
-
|
| 8 |
-
<body>
|
| 9 |
-
<h1>Admin Login</h1>
|
| 10 |
-
{% if error %}
|
| 11 |
-
<p style="color: red;">{{ error }}</p>
|
| 12 |
-
{% endif %}
|
| 13 |
-
<form method="POST">
|
| 14 |
-
<label for="password">Password:</label>
|
| 15 |
-
<input type="password" name="password" id="password" required>
|
| 16 |
-
<button type="submit">Login</button>
|
| 17 |
-
</form>
|
| 18 |
-
</body>
|
| 19 |
-
|
| 20 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/manage.html
DELETED
|
@@ -1,33 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
<head>
|
| 5 |
-
<title>Manage API Keys</title>
|
| 6 |
-
</head>
|
| 7 |
-
|
| 8 |
-
<body>
|
| 9 |
-
<h1>Manage Hugging Face API Keys</h1>
|
| 10 |
-
<h2>Current Keys:</h2>
|
| 11 |
-
<ul>
|
| 12 |
-
{% for key in keys %}
|
| 13 |
-
<li>
|
| 14 |
-
{{ key }}
|
| 15 |
-
<form method="POST" style="display: inline;">
|
| 16 |
-
<input type="hidden" name="action" value="delete">
|
| 17 |
-
<input type="hidden" name="key_to_delete" value="{{ key }}">
|
| 18 |
-
<button type="submit">Delete</button>
|
| 19 |
-
</form>
|
| 20 |
-
</li>
|
| 21 |
-
{% endfor %}
|
| 22 |
-
</ul>
|
| 23 |
-
<h2>Add New Key:</h2>
|
| 24 |
-
<form method="POST">
|
| 25 |
-
<input type="hidden" name="action" value="add">
|
| 26 |
-
<input type="text" name="new_key" placeholder="Enter new API key">
|
| 27 |
-
<button type="submit">Add</button>
|
| 28 |
-
</form>
|
| 29 |
-
<br>
|
| 30 |
-
<a href="{{ url_for('logout') }}">Logout</a>
|
| 31 |
-
</body>
|
| 32 |
-
|
| 33 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|