WCarlW commited on
Commit
a34f57b
1 Parent(s): 9d3e57d

Change output content

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -29,7 +29,11 @@ def titanic(Pclass, Sex, Age, SibSp):
29
  # flower_url = "https://raw.githubusercontent.com/featurestoreorg/serverless-ml-course/main/src/01-module/assets/" + res[0] + ".png"
30
  # img = Image.open(requests.get(flower_url, stream=True).raw)
31
  # return img
32
- return res[0]
 
 
 
 
33
 
34
  demo = gr.Interface(
35
  fn=titanic,
 
29
  # flower_url = "https://raw.githubusercontent.com/featurestoreorg/serverless-ml-course/main/src/01-module/assets/" + res[0] + ".png"
30
  # img = Image.open(requests.get(flower_url, stream=True).raw)
31
  # return img
32
+ if (res[0] == 0):
33
+ result = "I'm sorry, the person is dead"
34
+ else:
35
+ result = "Awesome, the person is survived!!!!!!"
36
+ return result
37
 
38
  demo = gr.Interface(
39
  fn=titanic,