Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,9 @@ from pycaret.regression import *
|
|
9 |
pd.options.display.float_format = '{:,.4f}'.format
|
10 |
%config InlineBackend.figure_format = 'retina'
|
11 |
|
|
|
|
|
|
|
12 |
def predict_cvr(xyz_campaign_id, gender, age, Impressions, Clicks,
|
13 |
Total_Conversion, interest): #สร้าง function predict_cvr โดยภายใน function คือ ส่วนของ input data
|
14 |
path = "/content/drive/MyDrive/KAG_conversion_data.csv" #Import development ไฟล์ที่เป็น .csv
|
|
|
9 |
pd.options.display.float_format = '{:,.4f}'.format
|
10 |
%config InlineBackend.figure_format = 'retina'
|
11 |
|
12 |
+
cvr_saved = load_model('/content/drive/MyDrive/pred_cvr')
|
13 |
+
pred = cvr_saved.predict(df)
|
14 |
+
|
15 |
def predict_cvr(xyz_campaign_id, gender, age, Impressions, Clicks,
|
16 |
Total_Conversion, interest): #สร้าง function predict_cvr โดยภายใน function คือ ส่วนของ input data
|
17 |
path = "/content/drive/MyDrive/KAG_conversion_data.csv" #Import development ไฟล์ที่เป็น .csv
|