Created
April 8, 2024 15:20
-
-
Save rollendxavier/a44fda4fd11a3ac434a35728f931ba24 to your computer and use it in GitHub Desktop.
Price Prediction UI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Crypto Predictor</title> | |
</head> | |
<body> | |
<h1>Crypto Predictor</h1> | |
<form method="POST"> | |
<label for="coin_id">Coin ID:</label><br> | |
<select id="coin_id" name="coin_id"> | |
{% for coin in coins %} | |
<option value="{{ coin }}">{{ coin }}</option> | |
{% endfor %} | |
</select><br> | |
<label for="days">Days:</label><br> | |
<input type="text" id="days" name="days"><br> | |
<input type="submit" value="Predict"> | |
</form> | |
{% if predictions %} | |
<h2>Predictions for {{ coin_id }}, {{ days }} days:</h2> | |
<table> | |
<tr> | |
<th>Date</th> | |
<th>Price</th> | |
</tr> | |
{% for date, prediction in predictions.items() %} | |
<tr> | |
<td>{{ date }}</td> | |
<td>{{ prediction }}</td> | |
</tr> | |
{% endfor %} | |
</table> | |
{% endif %} | |
{% if error %} | |
<p>{{ error }}</p> | |
{% endif %} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment