Valdimarb13 commited on
Commit
7d718dc
1 Parent(s): e4810c4

gravestone flip

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,9 +30,9 @@ 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
- 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
 
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]==1):
34
  flower_url = "https://images.pexels.com/photos/8384595/pexels-photo-8384595.jpeg?auto=compress&cs=tinysrgb&w=600"
35
+ elif(res[0]==0):
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