Spaces:
Sleeping
Sleeping
File size: 2,188 Bytes
70ca8e2 |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Text Tool</title>
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
<div class="container">
<h1>AI Text Assistant</h1>
<!-- Mode Toggle -->
<div class="mode-toggle">
<label class="toggle-option">
<input type="radio" name="mode" value="generate" checked>
<span class="toggle-label">Text Generation</span>
</label>
<label class="toggle-option">
<input type="radio" name="mode" value="summarize">
<span class="toggle-label">Text Summarization</span>
</label>
</div>
<div class="input-section">
<label for="textInput">Your Prompt:</label>
<textarea id="textInput" rows="6" placeholder="Enter your prompt..."></textarea>
<div class="controls">
<div class="control-group">
<label for="maxTokens">Max Tokens:</label>
<input type="number" id="maxTokens" value="150" min="10" max="500">
</div>
<div class="control-group">
<label for="doSample">
<input type="checkbox" id="doSample">
Enable Sampling
</label>
</div>
</div>
<button id="generateButton">Process</button>
</div>
<div class="output-section">
<h2>Output:</h2>
<div id="output" class="output-box">Your result will appear here...</div>
</div>
<div class="predictions-section">
<h2>Next Word Predictions:</h2>
<button id="predictButton">Get Next Word Predictions</button>
<div id="predictions" class="predictions-box">
Click the button above to see possible next words...
</div>
</div>
</div>
<script src="/static/js/app.js"></script>
</body>
</html> |