Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal2106 committed Jul 26, 2020
1 parent 2c7f744 commit 30abdbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from flask import Flask, render_template, request
import jsonify
import requests
import pickle
from datetime import datetime
Expand Down Expand Up @@ -44,7 +43,7 @@ def predict():
prediction=model.predict([[Present_Price,Kms_Driven,Owner,Years,Fuel_Type_Diesel,Fuel_Type_Petrol,Seller_Type_Individual,Transmission_Mannual]])
output=round(prediction[0],2)
if output<0:
return render_template('index.html',prediction_texts="Sorry you cannot sell this car")
return render_template('index.html',prediction_text="Sorry you cannot sell this car")
else:
return render_template('index.html',prediction_text="You Can Sell The Car at {} L".format(output))
else:
Expand Down
4 changes: 3 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@
</div>
</div>
</form>
<h3>{{ prediction_text }}<h3></h3>
<h3>{{ prediction_text }}</h3>
</div>
</body>
<div style="padding-bottom:15px; font-family: 'Roboto';color:white;" align="center">
made with <span style="color:#e25555;"></span> by <a target="_blank" href="https://github.com/vishal2106">Vishal Khandelwal</a></div>
<style>
a {
color :#00bcd4;
Expand Down

0 comments on commit 30abdbe

Please sign in to comment.