Change output content
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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,
|