text2sql / templates /index.html
kotimalla's picture
nvjsd
4134c67
raw
history blame contribute delete
852 Bytes
<!DOCTYPE html>
<html>
<head>
<title>Sentence to SQL App</title>
<style>
body {
text-align: center;
}
h1 {
margin-bottom: 20px;
}
textarea {
width: 70%;
height: 150px;
resize: vertical;
padding: 10px;
}
button {
margin-top: 10px;
}
h2 {
margin-top: 20px;
}
</style>
</head>
<body>
<h1>Sentence to SQL App</h1>
<form method="POST" action="/predict">
<textarea name="input_text" rows="4" cols="50" placeholder="Enter a sentence"></textarea>
<br>
<button type="submit">Predict SQL</button>
</form>
<br>
{% if predicted_sql %}
<h2>Predicted SQL Query:</h2>
<p>{{ predicted_sql }}</p>
{% endif %}
</body>
</html>