IIS_2023_1/orlov_artem_lab_6/templates/index.html
2023-12-02 13:17:52 +04:00

28 lines
817 B
HTML

<!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>