|
<!DOCTYPE html> |
|
<html> |
|
<head> |
|
<title>Trustworthy LLMs for Table QA</title> |
|
<style> |
|
body { |
|
font-family: 'Roboto', sans-serif; |
|
background: url('/static/images/background.jpg') no-repeat center center fixed; |
|
background-size: cover; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
height: 100vh; |
|
margin: 0; |
|
} |
|
.container { |
|
text-align: center; |
|
background-color: #ffffff; |
|
padding: 60px; |
|
border-radius: 10px; |
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
|
width: 60%; |
|
} |
|
h1 { |
|
color: #000000; |
|
font-size: 48px; |
|
margin-bottom: 30px; |
|
} |
|
label { |
|
display: block; |
|
margin: 20px 0 10px; |
|
color: #000000; |
|
font-size: 24px; |
|
} |
|
input[type="text"], input[type="number"] { |
|
width: 80%; |
|
padding: 15px; |
|
margin-bottom: 20px; |
|
border: 1px solid #ddd; |
|
border-radius: 5px; |
|
font-size: 18px; |
|
} |
|
.method-buttons { |
|
display: flex; |
|
flex-wrap: wrap; |
|
justify-content: space-between; |
|
margin-bottom: 20px; |
|
gap: 20px; |
|
} |
|
.method-button { |
|
width: calc(50% - 10px); |
|
padding: 15px; |
|
font-size: 20px; |
|
border-radius: 10px; |
|
cursor: pointer; |
|
transition: background-color 0.3s ease, border 0.3s ease; |
|
border: 2px solid transparent; |
|
font-weight: bold; |
|
text-align: center; |
|
} |
|
.method-button.cot { |
|
background-color: #e0f0ff; |
|
color: #1e90ff; |
|
} |
|
.method-button.pos { |
|
background-color: #ffcc80; |
|
color: #e65100; |
|
} |
|
.method-button.cot-ext { |
|
background-color: #e8f5e9; |
|
color: #4caf50; |
|
} |
|
.method-button.pos-ext { |
|
background-color: #fff3e0; |
|
color: #ff9800; |
|
} |
|
.method-button:hover { |
|
opacity: 0.8; |
|
} |
|
.method-button.selected { |
|
border-color: #000000; |
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); |
|
} |
|
button[type="submit"] { |
|
background-color: #4CAF50; |
|
color: white; |
|
padding: 15px 30px; |
|
border: none; |
|
border-radius: 5px; |
|
cursor: pointer; |
|
font-size: 24px; |
|
transition: background-color 0.3s ease; |
|
margin-top: 20px; |
|
} |
|
button[type="submit"]:hover { |
|
background-color: #45a049; |
|
} |
|
</style> |
|
<script> |
|
function selectMethod(method) { |
|
document.getElementById('method').value = method; |
|
|
|
var buttons = document.getElementsByClassName('method-button'); |
|
for (var i = 0; i < buttons.length; i++) { |
|
buttons[i].classList.remove('selected'); |
|
} |
|
|
|
document.querySelector(`.${method.toLowerCase().replace('-', '-')}`).classList.add('selected'); |
|
} |
|
|
|
function validateForm() { |
|
var username = document.getElementById('username').value; |
|
var seed = document.getElementById('seed').value; |
|
var method = document.getElementById('method').value; |
|
if (!username || !seed || !method) { |
|
alert("Please fill in all fields and select a method."); |
|
return false; |
|
} |
|
return true; |
|
} |
|
</script> |
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> |
|
</head> |
|
<body> |
|
<div class="container"> |
|
<h1>Trustworthy LLMs for Table QA</h1> |
|
<form id="method-form" action="/" method="post" onsubmit="return validateForm();"> |
|
<label for="username">Hi there πππ ! What is your name?</label> |
|
<input type="text" id="username" name="username" required> |
|
<label for="seed">What is your lucky number? πππ </label> |
|
<input type="number" id="seed" name="seed" required> |
|
|
|
<input type="hidden" id="method" name="method" required> |
|
|
|
<div class="method-buttons"> |
|
<div class="method-button cot" onclick="selectMethod('Chain-of-Table')"> |
|
Chain-of-Table |
|
</div> |
|
<div class="method-button pos" onclick="selectMethod('Plan-of-SQLs')"> |
|
Plan-of-SQLs |
|
</div> |
|
<div class="method-button cot-ext" onclick="selectMethod('Chain-of-Table-Ext')"> |
|
Chain-of-Table-Ext |
|
</div> |
|
<div class="method-button pos-ext" onclick="selectMethod('Plan-of-SQLs-Ext')"> |
|
Plan-of-SQLs-Ext |
|
</div> |
|
</div> |
|
|
|
<button type="submit">Start Experiment</button> |
|
</form> |
|
</div> |
|
</body> |
|
</html> |