Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -54,9 +54,9 @@ async def train_the_model(Tenant: str):
|
|
54 |
data = oversampled_data
|
55 |
|
56 |
|
57 |
-
# Select columns
|
58 |
selected_columns = ['customer_name', 'customer_address', 'customer_phone',
|
59 |
-
'
|
60 |
'destination_city.name','created_at','status.name']
|
61 |
|
62 |
# Handling missing values
|
@@ -223,8 +223,7 @@ def predict(
|
|
223 |
input_data = {
|
224 |
'customer_name': customer_name,
|
225 |
'customer_address': customer_address,
|
226 |
-
'customer_phone': int(customer_phone),
|
227 |
-
'customer_email': customer_email,
|
228 |
'cod': float(cod),
|
229 |
'weight': float(weight),
|
230 |
'origin_city.name':origin_city_name,
|
|
|
54 |
data = oversampled_data
|
55 |
|
56 |
|
57 |
+
# Select columns 'customer_email'
|
58 |
selected_columns = ['customer_name', 'customer_address', 'customer_phone',
|
59 |
+
'cod', 'weight', 'origin_city.name',
|
60 |
'destination_city.name','created_at','status.name']
|
61 |
|
62 |
# Handling missing values
|
|
|
223 |
input_data = {
|
224 |
'customer_name': customer_name,
|
225 |
'customer_address': customer_address,
|
226 |
+
'customer_phone': int(customer_phone), #'customer_email': customer_email,
|
|
|
227 |
'cod': float(cod),
|
228 |
'weight': float(weight),
|
229 |
'origin_city.name':origin_city_name,
|