Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import pickle
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load the pickled model
|
5 |
-
with open('./xgb_waze.pickle , 'rb') as file:
|
6 |
model = pickle.load(file)
|
7 |
|
8 |
# Define the function for making predictions
|
@@ -45,11 +45,12 @@ salifort_ga = gr.Interface(fn=salifort,
|
|
45 |
],
|
46 |
outputs = "text", title="Data-driven suggestions for Waze - User Churn",
|
47 |
examples = [
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
53 |
description="User Churn Prediction Using Machine Learning",
|
54 |
theme='dark'
|
55 |
)
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load the pickled model
|
5 |
+
with open('./xgb_waze.pickle' , 'rb') as file:
|
6 |
model = pickle.load(file)
|
7 |
|
8 |
# Define the function for making predictions
|
|
|
45 |
],
|
46 |
outputs = "text", title="Data-driven suggestions for Waze - User Churn",
|
47 |
examples = [
|
48 |
+
[30, 30, 207, 2239, 11, 12, 3919, 2182, 26, 25, 157, 0, 0, 0, 108, 131, 0, 0],
|
49 |
+
[47, 40, 144, 36, 353, 0, 10764, 4617, 18, 17, 633, 0, 0, 4, 140, 269, 2, 0],
|
50 |
+
[75, 61, 87, 2825, 67, 94, 243, 183, 2, 0, 0, 1, 0, 0, 80, 4, 2, 0, 0, 0],
|
51 |
+
[0, 0, 291, 1589, 447, 110, 1574, 1163, 17, 16, 98, 0, 0, 0, 81, 0, 2, 1, 0],
|
52 |
+
[56, 45, 82, 701, 80, 32, 1515, 691, 20, 15, 101, 1, 0, 0, 132, 34, 1, 0, 0]
|
53 |
+
],
|
54 |
description="User Churn Prediction Using Machine Learning",
|
55 |
theme='dark'
|
56 |
)
|