From 8d8ebd963c3edda68f3088c431c78960403a6c3c Mon Sep 17 00:00:00 2001 From: SayamAlt Date: Thu, 26 Oct 2023 14:41:28 +0530 Subject: [PATCH] debugging --- app.py | 3 +-- requirements.txt | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app.py b/app.py index 62205e5..7ed3c6d 100644 --- a/app.py +++ b/app.py @@ -1,6 +1,5 @@ from flask import Flask, render_template, request import joblib -import numpy as np import pandas as pd app = Flask(__name__) @@ -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__': diff --git a/requirements.txt b/requirements.txt index a417754..041ccc1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ joblib flask gunicorn -numpy pandas scikit-learn lightgbm \ No newline at end of file