Skip to content

Commit

Permalink
updated app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SayamAlt committed Oct 26, 2023
1 parent c01f361 commit b5d08de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def predict():
tip = int(request.form['tip'])
base_fare = float(request.form['base_fare'])
data = pd.DataFrame([[meter_rate,trip_duration,miscellaneous_fees,tip,base_fare]],columns=['meter_rate','trip_duration','miscellaneous_fees','tip','base_fare'])
pred = pipeline.predict(data)[0]
pred = round(pipeline.predict(data)[0],2)
return render_template('index.html',prediction_text=f"The predicted total fare of your taxi trip is ₹{pred}.")

if __name__ == '__main__':
Expand Down

0 comments on commit b5d08de

Please sign in to comment.