changed image link
Browse files
app.py
CHANGED
@@ -16,14 +16,14 @@ model = mr.get_model("titanic_modal_simple_classifier", version=1)
|
|
16 |
model_dir = model.download()
|
17 |
model = joblib.load(model_dir + "/titanic_model.pkl")
|
18 |
print(model_dir)
|
19 |
-
leo_url = "
|
20 |
rose_url = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSGoi8okN1Fw6tYE7k-0H-wnMabl1e3NBNPpQ&usqp=CAU"
|
21 |
# leo_url = "https://media.tenor.com/FghTtX3ZgbAAAAAC/drowning-leo.gif"
|
22 |
# rose_url = "https://media4.giphy.com/media/6A5zBPtbknIGY/giphy.gif?cid=ecf05e477syp5zeoheii45de76uicvgu0nuegojslz3zgodt&rid=giphy.gif&ct=g"
|
23 |
|
24 |
def titanic(pclass, name, sex, age, sibsp, parch, ticket, fare, cabin, embarked):
|
25 |
df_pre = pd.DataFrame({"PassengerId":[-1], "Pclass": [pclass], "Name": [name], "Sex": [sex], "Age": [age], "SibSp": [sibsp], "Parch": [parch], "Ticket": [ticket], "Fare": [fare], "Cabin": [cabin], "Embarked": [embarked]})
|
26 |
-
namechanges = {("sex", "Sex"), ("age", "Age"), ("sibsp", "SibSp"), ("parch", "Parch"), ("embarked", "Embarked"), ("title", "Title")}
|
27 |
|
28 |
|
29 |
df_post = feat_eng(df_pre)
|
|
|
16 |
model_dir = model.download()
|
17 |
model = joblib.load(model_dir + "/titanic_model.pkl")
|
18 |
print(model_dir)
|
19 |
+
leo_url = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTexIY-41JII4bGQ_088QA1uqWRAgzbasyvVA&usqp=CAU"
|
20 |
rose_url = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSGoi8okN1Fw6tYE7k-0H-wnMabl1e3NBNPpQ&usqp=CAU"
|
21 |
# leo_url = "https://media.tenor.com/FghTtX3ZgbAAAAAC/drowning-leo.gif"
|
22 |
# rose_url = "https://media4.giphy.com/media/6A5zBPtbknIGY/giphy.gif?cid=ecf05e477syp5zeoheii45de76uicvgu0nuegojslz3zgodt&rid=giphy.gif&ct=g"
|
23 |
|
24 |
def titanic(pclass, name, sex, age, sibsp, parch, ticket, fare, cabin, embarked):
|
25 |
df_pre = pd.DataFrame({"PassengerId":[-1], "Pclass": [pclass], "Name": [name], "Sex": [sex], "Age": [age], "SibSp": [sibsp], "Parch": [parch], "Ticket": [ticket], "Fare": [fare], "Cabin": [cabin], "Embarked": [embarked]})
|
26 |
+
# namechanges = {("sex", "Sex"), ("age", "Age"), ("sibsp", "SibSp"), ("parch", "Parch"), ("embarked", "Embarked"), ("title", "Title")}
|
27 |
|
28 |
|
29 |
df_post = feat_eng(df_pre)
|