rscolati commited on
Commit
0d4cd18
1 Parent(s): 4835023

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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
- if res[0] == 0: #ded
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