38 lines
1.9 KiB
HTML
38 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>LLM Interface (Ollama)</title>
|
|
<style>
|
|
body { font-family: sans-serif; margin: 20px; background-color: #f4f4f4; color: #333; }
|
|
.container { max-width: 800px; margin: 0 auto; background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
|
|
h1 { color: #0056b3; text-align: center; margin-bottom: 30px; }
|
|
form { display: flex; flex-direction: column; gap: 15px; }
|
|
label { font-weight: bold; }
|
|
textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; resize: vertical; min-height: 100px; font-size: 16px; }
|
|
button { background-color: #007bff; color: white; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 18px; transition: background-color 0.3s ease; }
|
|
button:hover { background-color: #0056b3; }
|
|
.response-container { margin-top: 30px; padding: 20px; background-color: #e9ecef; border-left: 5px solid #007bff; border-radius: 4px; }
|
|
pre { white-space: pre-wrap; word-wrap: break-word; font-family: monospace; font-size: 16px; line-height: 1.5; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Dein lokales LLM Interface (Ollama)</h1>
|
|
|
|
<form action="/generate" method="post">
|
|
<label for="prompt">Deine Anfrage an das LLM:</label>
|
|
<textarea id="prompt" name="prompt" placeholder="Stelle eine Frage oder gib eine Anweisung ein..." required>{{ prompt_value if prompt_value else '' }}</textarea>
|
|
<button type="submit">Generieren</button>
|
|
</form>
|
|
|
|
{% if response %}
|
|
<div class="response-container">
|
|
<h2>Antwort des LLM:</h2>
|
|
<pre>{{ response }}</pre>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</body>
|
|
</html> |