Spaces:
Runtime error
Runtime error
Commit
•
66755cb
1
Parent(s):
f456bbf
Update app.py
Browse files
app.py
CHANGED
@@ -60,8 +60,8 @@ def predict_survival(sex, age, fare):
|
|
60 |
return {'Perishes': float(pred[0]), 'Survives': float(pred[1])}
|
61 |
|
62 |
sex = gr.Radio(['female', 'male'], label="Sex", value="male")
|
63 |
-
age = gr.Slider(minimum=0, maximum=120,
|
64 |
-
fare = gr.Slider(minimum=0, maximum=200,
|
65 |
|
66 |
gr.Interface(predict_survival, [sex, age, fare], "label", live=True, thumbnail="https://raw.githubusercontent.com/gradio-app/hub-titanic/master/thumbnail.png", analytics_enabled=False,
|
67 |
theme=gr.themes.Soft(), title="Surviving the Titanic", description="What is the probability that a passenger on the Titanic would survive the famous wreck? It depends on their demographics as this live interface demonstrates.").launch();
|
|
|
60 |
return {'Perishes': float(pred[0]), 'Survives': float(pred[1])}
|
61 |
|
62 |
sex = gr.Radio(['female', 'male'], label="Sex", value="male")
|
63 |
+
age = gr.Slider(minimum=0, maximum=120, value=22, label="Age")
|
64 |
+
fare = gr.Slider(minimum=0, maximum=200, value=100, label="Fare (british pounds)")
|
65 |
|
66 |
gr.Interface(predict_survival, [sex, age, fare], "label", live=True, thumbnail="https://raw.githubusercontent.com/gradio-app/hub-titanic/master/thumbnail.png", analytics_enabled=False,
|
67 |
theme=gr.themes.Soft(), title="Surviving the Titanic", description="What is the probability that a passenger on the Titanic would survive the famous wreck? It depends on their demographics as this live interface demonstrates.").launch();
|