Nathanotal commited on
Commit
655757d
·
1 Parent(s): f1f699f
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -110,7 +110,8 @@ def titanic(Pclass, Sex, Age, SibSp, Parch, Fare, Embarked):
110
  generate_survivor_url).json()["image_url"]
111
 
112
  survivor_url = randomized_face_url
113
- img = Image.open(requests.get(survivor_url, stream=True).raw)
 
114
 
115
  #
116
  red_cross_url = "https://www.iconsdb.com/icons/preview/red/x-mark-xxl.png"
@@ -124,7 +125,8 @@ def titanic(Pclass, Sex, Age, SibSp, Parch, Fare, Embarked):
124
  url = label_to_url.get(survived)
125
 
126
  # Save the image of the person
127
- img2 = Image.open(requests.get(url, stream=True).raw)
 
128
 
129
  return img, img2
130
 
 
110
  generate_survivor_url).json()["image_url"]
111
 
112
  survivor_url = randomized_face_url
113
+ img = Image.open(requests.get(survivor_url, stream=True).raw).style(
114
+ height='100', rounded=False)
115
 
116
  #
117
  red_cross_url = "https://www.iconsdb.com/icons/preview/red/x-mark-xxl.png"
 
125
  url = label_to_url.get(survived)
126
 
127
  # Save the image of the person
128
+ img2 = Image.open(requests.get(url, stream=True).raw).style(
129
+ height='100', rounded=False)
130
 
131
  return img, img2
132