|
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Manage API Keys</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Manage Hugging Face API Keys</h1>
|
|
<h2>Current Keys:</h2>
|
|
<ul>
|
|
{% for key in keys %}
|
|
<li>
|
|
{{ key }}
|
|
<form method="POST" style="display: inline;">
|
|
<input type="hidden" name="action" value="delete">
|
|
<input type="hidden" name="key_to_delete" value="{{ key }}">
|
|
<button type="submit">Delete</button>
|
|
</form>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<h2>Add New Key:</h2>
|
|
<form method="POST">
|
|
<input type="hidden" name="action" value="add">
|
|
<input type="text" name="new_key" placeholder="Enter new API key">
|
|
<button type="submit">Add</button>
|
|
</form>
|
|
<br>
|
|
<a href="{{ url_for('logout') }}">Logout</a>
|
|
</body>
|
|
|
|
</html> |