Update app.py
Browse files
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 |
|