Spaces:
Running
Running
| {% extends "base.html" %} | |
| {% block title %}Titanic Predictor{% endblock %} | |
| {% block content %} | |
| <h2>Titanic Survival Predictor</h2> | |
| <form method="POST" class="form-box"> | |
| <input type="text" name="pclass" placeholder="Pclass (1-3)" required><br> | |
| <input type="text" name="sex" placeholder="Sex (0=male,1=female)" required><br> | |
| <input type="text" name="age" placeholder="Age" required><br> | |
| <input type="text" name="sibsp" placeholder="Siblings/Spouses Aboard" required><br> | |
| <input type="text" name="parch" placeholder="Parents/Children Aboard" required><br> | |
| <input type="text" name="fare" placeholder="Fare" required><br> | |
| <input type="text" name="alone" placeholder="alone (0=False,1=True)" required><br> | |
| <input type="text" name="IsAlone" placeholder="alone (0=False,1=True)" required><br> | |
| <input type="text" name="FamilySize" placeholder="Siblings/Spouses Aboard+Parents/Children Aboard+self" required><br> | |
| <input type="text" name="embarked_Q" placeholder="passenger boarded the ship from Queenstown (0=False,1=True)" required><br> | |
| <input type="text" name="embarked_S" placeholder="passenger boarded the ship from Southampton (0=False,1=True)" required><br> | |
| <button type="submit">Predict</button> | |
| </form> | |
| {% if prediction is not none %} | |
| <h3 class="result">Prediction: {% if prediction == 1 %}Survived{% else %}Did Not Survive{% endif %}</h3> | |
| {% endif %} | |
| <div class="links"> | |
| <a class="btn" href="/home">Home</a> | |
| <a class="btn logout" href="/logout">Logout</a> | |
| </div> | |
| {% endblock %} |