|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<title>Taxi Model Prediction</title> |
|
</head> |
|
<body> |
|
<h1>Taxi Q-learning Model Prediction</h1> |
|
<form action="/predict" method="POST"> |
|
<label for="state">Enter state:</label> |
|
<input type="text" id="state" name="state" required> |
|
<button type="submit">Predict</button> |
|
</form> |
|
|
|
{% if state %} |
|
<h3>State: {{ state }}</h3> |
|
<h3>Predicted Action: {{ action }}</h3> |
|
{% endif %} |
|
</body> |
|
</html> |