Valdimarb13 commited on
Commit
1879a44
1 Parent(s): 14158d2

gravestone

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -30,7 +30,10 @@ def titanic(Sex_Code,Pclass,Embarked_Code,Title_Code,FamilySize,AgeBin_Code,Fare
30
  # We add '[0]' to the result of the transformed 'res', because 'res' is a list, and we only want
31
  # the first element.
32
 
33
- flower_url = "https://images.pexels.com/photos/8384595/pexels-photo-8384595.jpeg?auto=compress&cs=tinysrgb&w=600"
 
 
 
34
  img = Image.open(requests.get(flower_url, stream=True).raw)
35
  return img
36
 
 
30
  # We add '[0]' to the result of the transformed 'res', because 'res' is a list, and we only want
31
  # the first element.
32
 
33
+ if(res[0]==0):
34
+ flower_url = "https://images.pexels.com/photos/8384595/pexels-photo-8384595.jpeg?auto=compress&cs=tinysrgb&w=600"
35
+ elif(res[0]==1)
36
+ flower_url = "https://images.pexels.com/photos/1121906/pexels-photo-1121906.jpeg?auto=compress&cs=tinysrgb&w=600"
37
  img = Image.open(requests.get(flower_url, stream=True).raw)
38
  return img
39