IIS_2023_1/orlov_artem_lab_5/templates/index.html

28 lines
817 B
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Restaurant Rating Prediction</title>
</head>
<body>
<h1>Restaurant Rating Prediction</h1>
<form method="post" action="/predict">
<label for="StarRating">Star Rating:</label>
<input type="number" step="0.1" name="StarRating" required><br>
<label for="NumberOfReviews">Number of Reviews:</label>
<input type="number" name="NumberOfReviews" required><br>
<label for="Style">Style:</label>
<input type="text" name="Style" required><br>
<button type="submit">Predict Rating</button>
</form>
{% if prediction %}
<p>Predicted Rating: {{ prediction }}</p>
{% endif %}
</body>
</html>