moahof commited on
Commit
ffd0aeb
1 Parent(s): 6ff37a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def passenger(pclass, sex, age, embarked):
26
  res = model.predict(np.asarray(input_list).reshape(1, -1))
27
  # We add '[0]' to the result of the transformed 'res', because 'res' is a list, and we only want
28
  # the first element.
29
- titanic_url = "https://raw.githubusercontent.com/AbyelT/ID2223-Scalable-ML-and-DL/main/Lab1/Titanic/assets/" + res[0] + ".png"
30
  img = Image.open(requests.get(titanic_url, stream=True).raw)
31
  return img
32
 
26
  res = model.predict(np.asarray(input_list).reshape(1, -1))
27
  # We add '[0]' to the result of the transformed 'res', because 'res' is a list, and we only want
28
  # the first element.
29
+ titanic_url = "https://raw.githubusercontent.com/AbyelT/ID2223-Scalable-ML-and-DL/main/Lab1/Titanic/assets/" + str(res[0]) + ".png"
30
  img = Image.open(requests.get(titanic_url, stream=True).raw)
31
  return img
32