Spaces:
Runtime error
Runtime error
Commit
·
1aeb236
1
Parent(s):
db8d6f5
Update app.py
Browse files
app.py
CHANGED
@@ -52,8 +52,7 @@ def passenger(Pclass, Age, SibSp, Parch, Fare, Sex, Embarked):
|
|
52 |
res = str(res[0])
|
53 |
# We add '[0]' to the result of the transformed 'res', because 'res' is a list, and we only want
|
54 |
# the first element.
|
55 |
-
passenger_url = "https://raw.githubusercontent.com/GianlucaRub/Scalable-Machine-Learning-and-Deep-Learning/main/
|
56 |
-
#passenger_url = "https://github.com/GianlucaRub/Scalable-Machine-Learning-and-Deep-Learning/blob/main/lab1/assets/" + res + ".png"
|
57 |
img = Image.open(requests.get(passenger_url, stream=True).raw)
|
58 |
return img
|
59 |
|
|
|
52 |
res = str(res[0])
|
53 |
# We add '[0]' to the result of the transformed 'res', because 'res' is a list, and we only want
|
54 |
# the first element.
|
55 |
+
passenger_url = "https://raw.githubusercontent.com/GianlucaRub/Scalable-Machine-Learning-and-Deep-Learning/main/Lab1/assets/" + res + ".png"
|
|
|
56 |
img = Image.open(requests.get(passenger_url, stream=True).raw)
|
57 |
return img
|
58 |
|