Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
SayamAlt committed Oct 26, 2023
1 parent 5554fd8 commit 8d8ebd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from flask import Flask, render_template, request
import joblib
import numpy as np
import pandas as pd

app = Flask(__name__)
Expand All @@ -20,7 +19,7 @@ def predict():
tip = float(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 = np.round(pipeline.predict(data)[0],2)
pred = pipeline.predict(data)
return render_template('index.html',prediction_text=f"The predicted total fare of your taxi trip is ₹{pred}.")

if __name__ == '__main__':
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
joblib
flask
gunicorn
numpy
pandas
scikit-learn
lightgbm

0 comments on commit 8d8ebd9

Please sign in to comment.