Upload app.py
Browse files
app.py
CHANGED
@@ -34,10 +34,7 @@ def titanic(age, sex, pclass, embarked):
|
|
34 |
# the first element.
|
35 |
print(res[0]) # 0/1
|
36 |
# below is just for testing
|
37 |
-
|
38 |
-
passenger_url = "https://media.istockphoto.com/id/157612035/sv/foto/shipwreck.jpg?s=612x612&w=0&k=20&c=BSVml8_SqgvSmEijAprhniyp_Wa_l5qIIVIxhmmBgBQ="
|
39 |
-
else:
|
40 |
-
passenger_url = "https://i.chzbgr.com/full/5420028160/hD88BD9FE/like-a-boss"
|
41 |
img = Image.open(requests.get(passenger_url, stream=True).raw)
|
42 |
return img
|
43 |
|
|
|
34 |
# the first element.
|
35 |
print(res[0]) # 0/1
|
36 |
# below is just for testing
|
37 |
+
passenger_url = "https://raw.githubusercontent.com/aykhazanchi/id2223-scalable-ml/master/lab1/titanic/assets/" + str(res[0]) + ".jpg"
|
|
|
|
|
|
|
38 |
img = Image.open(requests.get(passenger_url, stream=True).raw)
|
39 |
return img
|
40 |
|