cleanup unused files
This commit is contained in:

committed by
Geoff Seemueller

parent
8a3c0797c3
commit
1704d5cd47
@@ -1,62 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Axum Server UI</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 40px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
#output {
|
||||
margin-top: 20px;
|
||||
padding: 15px;
|
||||
border: 1px solid #ddd;
|
||||
background-color: #f9f9f9;
|
||||
white-space: pre-wrap;
|
||||
height: 300px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
width: 60%;
|
||||
padding: 10px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 11px 20px;
|
||||
font-size: 16px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
async function sendRequest() {
|
||||
const input = document.getElementById('userInput').value;
|
||||
const response = await fetch(`/api/agents?resource=web-search&input=${encodeURIComponent(input)}`);
|
||||
const reader = response.body.getReader();
|
||||
const decoder = new TextDecoder('utf-8');
|
||||
let result = '';
|
||||
const outputDiv = document.getElementById('output');
|
||||
|
||||
while (true) {
|
||||
const {done, value} = await reader.read();
|
||||
if (done) break;
|
||||
result += decoder.decode(value);
|
||||
outputDiv.textContent = result;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Axum Server UI</h1>
|
||||
<input type="text" id="userInput" placeholder="Enter your query here">
|
||||
<button onclick="sendRequest()">Submit</button>
|
||||
<div id="output"></div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user