Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import pickle
|
2 |
import gradio as gr
|
3 |
|
4 |
-
|
|
|
|
|
5 |
|
6 |
# Define the function for making predictions
|
7 |
def automatidata(VendorID, passenger_count, Distance, Duration, rush_hour):
|
|
|
1 |
import pickle
|
2 |
import gradio as gr
|
3 |
|
4 |
+
# Load the pickled model
|
5 |
+
with open('./Automatidata_gui.pickle', 'rb') as file:
|
6 |
+
model = pickle.load(file)
|
7 |
|
8 |
# Define the function for making predictions
|
9 |
def automatidata(VendorID, passenger_count, Distance, Duration, rush_hour):
|